-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
72 lines (65 loc) · 1.74 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[package]
name = "burocratin"
version = "0.2.0"
authors = ["Jorge Perez Burgos <[email protected]>"]
edition = "2021"
rust-version = "1.80"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies.web-sys]
version = "0.3"
features = [
"HtmlAnchorElement",
"HtmlInputElement",
"FileList",
]
[dependencies]
anyhow = "1.0"
utf16-ext = "0.1"
byteorder = "1.2"
chrono = { version = "0.4", features = ["serde"] }
console_error_panic_hook = "0.1"
csv = "1.1"
dominator = "0.5"
encoding_rs = "0.8"
futures = "0.3"
futures-signals = "0.3"
gloo-file = { version = "0.3", features = [ "futures" ] }
gloo-utils = "0.2"
html5ever = "0.25"
infer = "0.16.0"
instant = { version = "0.1", features = [ "wasm-bindgen", "inaccurate" ] }
isin = "0.1.18"
js-sys = "0.3"
log = "0.4"
nom = "6.0"
num-format = "0.4.4"
pdf-extract = "0.7"
rust_decimal = "1.7"
scraper = "0.12"
selectors = "0.22"
serde = { version = "1.0", features = ["derive", "rc"] }
xml-rs = "0.8"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
wasm-logger = "0.2"
zip = { version = "0.5", default-features = false, features = ["deflate"]}
[dev-dependencies]
ctor = "0.1"
env_logger = "0.9"
reqwest = { version = "0.11", default-features = false, features = ["json"] }
thirtyfour = "0.27"
tokio = { version = "1.0", features = ["fs", "macros", "rt-multi-thread", "io-util"] }
[profile.dev.package."*"]
opt-level = 3
[profile.release]
# less code to include into binary
panic = 'abort'
# optimization over all codebase ( better optimization, slower build )
codegen-units = 1
# optimization for size ( more aggressive )
opt-level = "z" # 3 => fast, s/z => small
# link time optimization using using whole-program analysis
lto = true
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-Oz"] # O4 => fast, Oz/Os => small