-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
76 lines (68 loc) · 2.04 KB
/
Cargo.toml
File metadata and controls
76 lines (68 loc) · 2.04 KB
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
73
74
75
76
[package]
authors = ["Lucas Pickering <lucas@lucaspickering.me>"]
description = "Command line utility program for Old School RuneScape"
edition = "2021"
keywords = ["osrs", "runescape"]
license = "MIT"
name = "osrs-cli"
repository = "https://github.com/LucasPickering/osrs-cli"
# If you update this, make sure to update the version used in test.yml and rust-toolchain.yml
rust-version = "1.91"
version = "2.0.1"
[lib]
crate-type = ["cdylib", "rlib"] # Needed for wasm
name = "osrs_cli"
path = "src/lib.rs"
# Uncomment when running `npm run build` on Mac, because wasm-opt doesn't work
# on ARM yet
# [package.metadata.wasm-pack.profile.release]
# wasm-opt = false
# https://github.com/rust-lang/cargo/issues/9208 disable this for wasm
[[bin]]
name = "osrs"
path = "src/bin.rs"
[dependencies]
anyhow = "^1.0.0"
async-trait = "^0.1.52"
colored = "^2.0.0"
csv = "^1.1.3"
derive_more = "^0.99.17"
figment = {version = "^0.10.6", features = ["json"]}
futures = "^0.3.19"
lazy_static = "^1.4.0"
num-format = "^0.4.0"
regex = "^1.3.9"
reqwest = {version = "^0.11.8", default-features = false, features = ["rustls-tls"]}
serde = {version = "^1.0.114", features = ["derive"]}
serde_json = "^1.0.57"
structopt = "^0.3.15"
thiserror = "^1.0.0"
urlencoding = "^2.1.0"
[dev-dependencies]
assert_approx_eq = "^1.1.0"
# Non-wasm dependencies (stuff that can't run in the browser)
[target.'cfg(not(target_family = "wasm"))'.dependencies]
comfy-table = "^5.0.1" # tty feature not supported in wasm
dirs = "4.0"
open = "^2.0.1"
tokio = {version = "^1.15.0", default-features = false, features = ["macros", "rt"]}
# Wasm-only dependencies
[target.'cfg(target_family = "wasm")'.dependencies]
comfy-table = {version = "^5.0.1", default-features = false}
console_error_panic_hook = "^0.1.7"
js-sys = "^0.3.55"
wasm-bindgen = "^0.2.106"
wasm-bindgen-futures = "^0.4.28"
web-sys = {version = "^0.3.55", features = [
"Headers",
"Request",
"RequestInit",
"RequestMode",
"Response",
"Storage",
"Window",
]}
# The profile that 'dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"