alemi
520c8eff3a
no more "impl ..." hell, each trait has associated types so that we know it's a "Self::Link" or a "Self::Actor", but in practice they can both be a "serde_json::Value" and thus we can change its type. also Node::Array is now a Vec<T> rather than Vec<Node<T>> because it makes more sense. Node is Iterable and will yield zero (Empty|Link), one (Object) or many (Array) Ts
23 lines
579 B
TOML
23 lines
579 B
TOML
[package]
|
|
name = "apb"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
thiserror = "1.0"
|
|
serde_json = { version = "1.0", optional = true }
|
|
reqwest = { version = "0.12", features = ["json"], optional = true }
|
|
paste = "1.0.14"
|
|
sea-orm = { version = "0.12", optional = true }
|
|
tracing = "0.1.40"
|
|
|
|
[features]
|
|
default = ["fetch", "dict", "orm"]
|
|
fetch = ["dep:reqwest"]
|
|
dict = ["dep:serde_json"]
|
|
orm = ["dep:sea-orm"]
|