[package]
edition = "2021"
rust-version = "1.89"
name = "wasmsh-browser"
version = "0.7.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Browser Web Worker integration for wasmsh"
homepage = "https://github.com/mayflower/wasmsh"
documentation = "https://github.com/mayflower/wasmsh"
readme = "README.md"
keywords = [
"shell",
"bash",
"wasm",
"parser",
"sandbox",
]
categories = [
"command-line-utilities",
"wasm",
"parser-implementations",
]
license = "Apache-2.0"
repository = "https://github.com/mayflower/wasmsh"
[package.metadata.cargo-machete]
ignored = [
"serde",
"wasmsh-fs",
"wasmsh-utils",
"js-sys",
]
[features]
browser-core = []
browser-extended = [
"browser-core",
"wasmsh-fs/opfs",
]
default = ["browser-core"]
[lib]
name = "wasmsh_browser"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[test]]
name = "network_security"
path = "tests/network_security.rs"
[[bench]]
name = "pipeline_bench"
path = "benches/pipeline_bench.rs"
harness = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.wasmsh-fs]
version = "0.7.0"
[dependencies.wasmsh-protocol]
version = "0.7.0"
[dependencies.wasmsh-runtime]
version = "0.7.0"
[dependencies.wasmsh-utils]
version = "0.7.0"
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.ureq]
version = "2"
[dev-dependencies.wasmsh-protocol]
version = "0.7.0"
[target.'cfg(target_arch = "wasm32")'.dependencies.console_error_panic_hook]
version = "0.1"
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
dbg_macro = "warn"
doc_markdown = "warn"
if_not_else = "allow"
manual_let_else = "warn"
match_same_arms = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_lifetimes = "allow"
print_stderr = "warn"
print_stdout = "warn"
redundant_closure_for_method_calls = "warn"
redundant_else = "warn"
semicolon_if_nothing_returned = "warn"
similar_names = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
type_complexity = "allow"
unwrap_or_default = "warn"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
unreachable_pub = "warn"
unsafe_code = "deny"
unused_qualifications = "warn"