Skip to content

Commit

Permalink
Improved styling for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Jul 23, 2021
1 parent 3e04015 commit 1fa19a2
Showing 1 changed file with 24 additions and 86 deletions.
110 changes: 24 additions & 86 deletions lib/api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,131 +11,84 @@ 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" }
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",
Expand Down Expand Up @@ -167,9 +120,7 @@ default-compiler = []
"default-compiler",
"llvm",
]
#
# ## Engines.
#
# - Engines.
engine = ["sys"]
universal = [
"engine",
Expand All @@ -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"]
#
#####

0 comments on commit 1fa19a2

Please sign in to comment.