Skip to main content

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))]
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;
27mod logging;
28mod opts;
29mod types;
30mod utils;
31
32mod edge_config;
33
34/// Version number of this crate.
35const VERSION: &str = env!("CARGO_PKG_VERSION");
36
37/// Run the Wasmer CLI.
38pub fn run_cli() {
39    self::commands::WasmerCmd::run();
40}