forked from Stremio/stremio-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
104 lines (81 loc) · 2.31 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[package]
name = "stremio-core"
version = "0.1.0"
authors = ["Smart Code OOD"]
edition = "2021"
rust-version = "1.67.1"
[profile.release]
lto = true
opt-level = 's'
[workspace]
resolver = "2"
members = [
"stremio-core-web",
"stremio-derive",
"stremio-watched-bitfield",
]
[features]
# TODO: env-future-send should be enabled by default
# but our `TestEnv` for `unit_tests` uses a MutexGuard which is not Send.
# default = ["env-future-send"]
default = []
# Adds `Send` marker trait to the `Env` trait methods and `EnvFuture`.
# It's required for environments that do not support `Send`.
# If enabled for `wasm` it will cause a compile error!
# see https://github.com/rustwasm/wasm-bindgen/issues/2833
env-future-send = []
# Exports the Model derive macro from `stremio-derive`
derive = []
# Enable core analytics
analytics = []
[dependencies]
stremio-derive = { path = "stremio-derive" }
stremio-watched-bitfield = { path = "stremio-watched-bitfield" }
stremio-official-addons = "=2.0.12"
# (De)Serialization
serde = { version = "1", features = ["derive"]}
serde_json = "1.0.*"
serde_path_to_error = "0.1"
serde_url_params = "0.2"
serde_bencode = "0.2.*"
stremio-serde-hex = "0.1.*" # keep track of https://github.com/fspmarshall/serde-hex/pull/8
serde_with = { version = "3.5", features = ["macros", "chrono_0_4"] }
flate2 = "1.0.*"
futures = "0.3.*"
http = "0.2.*"
url = { version = "2.4", features = ["serde"] }
percent-encoding = "2.1"
# Time
chrono = { version = "0.4", features = ["serde"] }
semver = { version = "1", features = ["serde"] }
base64 = "0.21"
sha1 = "0.10"
sha2 = "0.10"
either = "1.6"
enclose = "1.1"
derivative = "2.2"
derive_more = "0.99"
boolinator = "2.4"
strum = { version = "0.25", features = ["derive"] }
lazysort = "0.2"
lazy_static = "1.4"
once_cell = "1.4"
itertools = "0.11"
magnet-url = "2.0"
hex = "0.4"
# error handling
anyhow = "1.0"
thiserror = "1"
regex = "1.8"
# local search and autocomplete functionallity
localsearch = { version = "0.1.0", git = "https://github.com/Stremio/local-search", branch = "main" }
# Number operations
num = { version = "0.4.0", default-features = false }
# Tracing
tracing = "0.1"
[dev-dependencies]
tokio = { version = "1.12", features = ["rt", "macros"] }
tokio-current-thread = "=0.2.0-alpha.1"
serde_test = "1.0"
assert_matches = "1.5"
pretty_assertions = "1"