[package] name = "enfync" description = "Environment-friendly async utilities" authors = ["koe "] version = "0.1.6" edition = "2021" keywords = ["async", "wasm", "native"] license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/UkoeHB/enfync" [features] default = ["builtin"] # Enables builtin handles. builtin = [] [lib] path = "src/lib.rs" test = false doctest = false [[test]] name = "test" path = "tests/test/mod.rs" doctest = false [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] [dependencies] async-trait = { version = "0.1" } futures = { version = "0.3" } [target.'cfg(not(target_family = "wasm"))'.dependencies] tokio = { version = "1.29", default-features = false, features = [ "rt-multi-thread", "time" ] } [target.'cfg(target_family = "wasm")'.dependencies] wasmtimer = { version = "0.2" } wasm-bindgen = { version = "0.2" } wasm-bindgen-futures = { version = "0.4" } [target.'cfg(target_family = "wasm")'.dev-dependencies] wasm-bindgen-test = { version = "0.3" } web-sys = { version = "0.3", features = [ "console" ] } [profile.release] lto = true strip = true codegen-units = 1 [profile.release-small] inherits = "release" opt-level = "s" lto = "fat" [profile.release-small.package."*"] opt-level = "s" strip = true [profile.release-wasm] inherits = "release-small" panic = "abort" [profile.release-wasm.package."*"] opt-level = "s" strip = true [profile.dev-wasm] inherits = "dev" panic = "abort"