Debian Codegraph @

one-ini-wasm/Cargo.toml

raw symbols SCIP
1 [package]
2 authors = ["Jed Mao <[email protected]>", "Joe Hildebrand <[email protected]>", "Florian Neumann <[email protected]>"]
3 categories = ["config", "parser-implementations", "wasm"]
4 description = "Parse EditorConfig-INI file contents into AST"
5 documentation = "https://docs.rs/one-ini"
6 edition = "2021"
7 keywords = ["editorconfig", "ini", "parser", "ast"]
8 license = "MIT"
9 name = "one-ini"
10 publish = false
11 repository = "https://github.com/one-ini/core"
12 version = "0.2.0"
13
14 [lib]
15 crate-type = ["cdylib", "rlib"]
16
17 [features]
18 default = ["console_error_panic_hook"]
19
20 [dependencies]
21 pest = "2.7.15"
22 pest_derive = "2.7.15"
23 serde = {version = "1.0", features = ["derive"]}
24 serde-wasm-bindgen = "0.6"
25 serde_json = "1.0"
26 wasm-bindgen = {version = "0.2.100", features = ["serde-serialize"]}
27
28 # The `console_error_panic_hook` crate provides better debugging of panics by
29 # logging them with `console.error`. This is great for development, but requires
30 # all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
31 # code size when deploying.
32 console_error_panic_hook = {version = "0.1.7", optional = true}
33
34 # `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
35 # compared to the default allocator's ~10K. It is slower than the default
36 # allocator, however.
37 #
38
39 [target.'cfg(target_arch = "wasm32")'.dependencies]
40 # Unfortunately, `wee_alloc` requires nightly Rust when targeting wasm for now.
41 wee_alloc = {version = "0.4.5"}
42
43 [dev-dependencies]
44 wasm-bindgen-test = "0.3.50"
45
46 [profile.release]
47 # Tell `rustc` to optimize for small code size.
48 opt-level = "s"