47 lines
1.1 KiB
TOML
47 lines
1.1 KiB
TOML
[package]
|
|
name = "magnetar_sdk"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
|
|
[lib]
|
|
crate-type = ["rlib", "cdylib"]
|
|
|
|
[features]
|
|
reqwest = ["dep:reqwest"]
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.features]
|
|
default = ["reqwest"]
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.features]
|
|
default = []
|
|
|
|
|
|
[dependencies]
|
|
magnetar_sdk_macros = { path = "./macros" }
|
|
|
|
chrono = { workspace = true, features = ["serde"] }
|
|
reqwest = { workspace = true, features = ["json"], optional = true }
|
|
|
|
http = { workspace = true }
|
|
async-trait = { workspace = true }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json = { workspace = true }
|
|
|
|
ts-rs = { workspace = true, features = ["chrono", "chrono-impl"] }
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
wasm-bindgen = { workspace = true }
|
|
wasm-bindgen-futures = { workspace = true }
|
|
serde-wasm-bindgen = { workspace = true }
|
|
chrono = { workspace = true, features = ["serde", "wasm-bindgen", "js-sys"] }
|
|
js-sys = { workspace = true }
|
|
web-sys = { workspace = true, features = [
|
|
"Headers",
|
|
"Request",
|
|
"RequestInit",
|
|
"RequestMode",
|
|
"Response",
|
|
"Window",
|
|
"UrlSearchParams"
|
|
] }
|