wasmer_cli/
lib.rs

1//! The Wasmer binary lib
2
3#![doc(html_favicon_url = "https://wasmer.io/images/icons/favicon-32x32.png")]
4#![doc(html_logo_url = "https://github.com/wasmerio.png?size=200")]
5#![deny(
6    missing_docs,
7    // dead_code,
8    nonstandard_style,
9    unused_mut,
10    // unused_variables,
11    unused_unsafe,
12    unreachable_patterns
13)]
14// Allowed because it makes code more readable.
15#![allow(clippy::bool_comparison, clippy::match_like_matches_macro)]
16#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
17
18//#[cfg(all(target_os = "linux", feature = "tun-tap"))]
19//mod net;
20
21mod commands;
22mod common;
23mod config;
24#[macro_use]
25mod error;
26mod backend;
27#[cfg(feature = "static-artifact-create")]
28mod c_gen;
29mod logging;
30mod opts;
31mod types;
32mod utils;
33
34mod edge_config;
35
36/// Version number of this crate.
37const VERSION: &str = env!("CARGO_PKG_VERSION");
38
39/// Run the Wasmer CLI.
40pub fn run_cli() {
41    self::commands::WasmerCmd::run();
42}