From 1fa19a2c334e3a30128f75be6885f39559ce7867 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Fri, 23 Jul 2021 15:14:54 -0700 Subject: [PATCH] Improved styling for readability --- lib/api/Cargo.toml | 110 ++++++++++----------------------------------- 1 file changed, 24 insertions(+), 86 deletions(-) diff --git a/lib/api/Cargo.toml b/lib/api/Cargo.toml index 57eb0d8b6c1..bc607e0f341 100644 --- a/lib/api/Cargo.toml +++ b/lib/api/Cargo.toml @@ -11,43 +11,27 @@ readme = "README.md" edition = "2018" ##### -# # This crate comes in 2 major flavors: # -# * `sys`, where `wasmer` will be compiled to a native executable +# - `sys`, where `wasmer` will be compiled to a native executable # which provides compilers, engines, a full VM etc. -# * `js`, where `wasmer` will be compiled to WebAssembly to run in a +# - `js`, where `wasmer` will be compiled to WebAssembly to run in a # JavaScript host. -# ##### -##### -# -# # Shared dependencies. -# +# Shared dependencies. [dependencies] -# -# ## Mandatory shared dependencies. -# +# - Mandatory shared dependencies. indexmap = { version = "1.6", features = ["serde-1"] } cfg-if = "1.0" thiserror = "1.0" more-asserts = "0.2" -# -# ## Optional shared dependencies. -# +# - Optional shared dependencies. wat = { version = "1.0", optional = true } -# -##### -##### -# -# # Dependencies and Development Dependencies for `sys`. -# +# Dependencies and Development Dependencies for `sys`. [target.'cfg(not(target_arch = "wasm32"))'.dependencies] -# -# ## Mandatory dependencies for `sys`. -# +# - Mandatory dependencies for `sys`. wasmer-vm = { path = "../vm", version = "2.0.0" } wasmer-compiler = { path = "../compiler", version = "2.0.0" } wasmer-derive = { path = "../derive", version = "2.0.0" } @@ -55,87 +39,56 @@ wasmer-engine = { path = "../engine", version = "2.0.0" } wasmer-types = { path = "../types", version = "2.0.0" } target-lexicon = { version = "0.12", default-features = false } loupe = "0.1" -# -# ## Optional dependencies for `sys`. -# +# - Optional dependencies for `sys`. wasmer-compiler-singlepass = { path = "../compiler-singlepass", version = "2.0.0", optional = true } wasmer-compiler-cranelift = { path = "../compiler-cranelift", version = "2.0.0", optional = true } wasmer-compiler-llvm = { path = "../compiler-llvm", version = "2.0.0", optional = true } wasmer-engine-universal = { path = "../engine-universal", version = "2.0.0", optional = true } wasmer-engine-dylib = { path = "../engine-dylib", version = "2.0.0", optional = true } -# -# ## Mandatory dependencies for `sys` on Windows. -# +# - Mandatory dependencies for `sys` on Windows. [target.'cfg(all(not(target_arch = "wasm32"), target_os = "windows"))'.dependencies] -# winapi = "0.3" -# -# ## Development Dependencies for `sys`. -# +# - Development Dependencies for `sys`. [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] -# -libc = { version = "^0.2", default-features = false } # for the binary wasmer.rs wat = "1.0" tempfile = "3.1" anyhow = "1.0" -# -##### -##### -# -# # Dependencies and Develoment Dependencies for `js`. -# +# Dependencies and Develoment Dependencies for `js`. [target.'cfg(target_arch = "wasm32")'.dependencies] -# -# ## Mandatory dependencies for `js`. -# +# - Mandatory dependencies for `js`. wasmer-types = { path = "../types", version = "2.0.0", default-features = false, features = ["std"] } wasm-bindgen = "0.2.74" js-sys = "0.3.51" wasmer-derive = { path = "../derive", version = "2.0.0" } -# -# ## Optional dependencies for `js`. -# +# - Optional dependencies for `js`. wasmparser = { version = "0.78", default-features = false, optional = true } hashbrown = { version = "0.9", optional = true } -# -# ## Development Dependencies for `js`. -# +# - Development Dependencies for `js`. [target.'cfg(target_arch = "wasm32")'.dev-dependencies] -# wat = "1.0" anyhow = "1.0" wasm-bindgen-test = "0.3.0" -# -##### -##### -# -# # Specific to `js`. +# Specific to `js`. # # `wasm-opt` is on by default in for the release profile, but it can be # disabled by setting it to `false` -# [package.metadata.wasm-pack.profile.release] wasm-opt = false -# -#### [badges] maintenance = { status = "actively-developed" } [features] default = ["sys-default"] +std = [] +core = ["hashbrown"] -##### -# -# # Features for `sys`. -# +# Features for `sys`. sys = [] sys-default = ["sys", "wat", "default-cranelift", "default-universal"] -# -# ## Compilers. -# +# - Compilers. compiler = [ "sys", "wasmer-compiler/translator", @@ -167,9 +120,7 @@ default-compiler = [] "default-compiler", "llvm", ] -# -# ## Engines. -# +# - Engines. engine = ["sys"] universal = [ "engine", @@ -188,30 +139,17 @@ default-engine = [] "default-engine", "dylib", ] -# -# ## Experimental / in-development features -# +# - Experimental / in-development features experimental-reference-types-extern-ref = [ "sys", "wasmer-types/experimental-reference-types-extern-ref", ] -# -# ## Deprecated features. -# +# - Deprecated features. jit = ["universal"] native = ["dylib"] -# -##### -##### -# -# # Features for `js`. -# +# Features for `js`. js = [] js-default = ["js", "std", "wasm-types-polyfill", "wat"] -# + wasm-types-polyfill = ["js", "wasmparser"] -std = ["js"] -core = ["js", "hashbrown"] -# -##### \ No newline at end of file