lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README | LICENSE

Cargo.toml (2374B)


      1 [package]
      2 name = "radroots_trade"
      3 publish = ["crates-io"]
      4 version = "0.1.0-alpha.2"
      5 edition.workspace = true
      6 authors = ["Tyson Lupul <tyson@radroots.org>"]
      7 rust-version.workspace = true
      8 license.workspace = true
      9 description = "Trade listing, order, and public-trade workflow helpers"
     10 repository.workspace = true
     11 homepage.workspace = true
     12 documentation = "https://docs.rs/radroots_trade"
     13 readme = "README"
     14 
     15 [features]
     16 default = ["std", "serde", "serde_json"]
     17 dto-bindgen = [
     18   "std",
     19   "serde_json",
     20   "dep:dto_bindgen",
     21   "dep:dto_bindgen_core",
     22   "radroots_core/dto-bindgen",
     23   "radroots_events/dto-bindgen",
     24 ]
     25 std = [
     26   "radroots_authority/std",
     27   "radroots_core/std",
     28   "radroots_events/std",
     29   "radroots_events_codec/std",
     30 ]
     31 event_store = [
     32   "std",
     33   "serde_json",
     34   "dep:radroots_event_store",
     35   "radroots_event_store/sqlite",
     36   "radroots_event_store/runtime-tokio",
     37 ]
     38 serde = [
     39   "dep:serde",
     40   "radroots_core/serde",
     41   "radroots_events/serde",
     42   "radroots_events_codec/serde",
     43 ]
     44 serde_json = [
     45   "serde",
     46   "dep:base64",
     47   "dep:hex",
     48   "dep:serde_json",
     49   "dep:sha2",
     50   "radroots_events_codec/serde_json",
     51 ]
     52 
     53 [dependencies]
     54 radroots_authority = { workspace = true, default-features = false }
     55 radroots_core = { workspace = true, default-features = false }
     56 radroots_events = { workspace = true, default-features = false }
     57 radroots_events_codec = { workspace = true, default-features = false }
     58 radroots_event_store = { workspace = true, optional = true, default-features = false }
     59 base64 = { workspace = true, optional = true }
     60 dto_bindgen = { workspace = true, optional = true }
     61 dto_bindgen_core = { workspace = true, optional = true }
     62 hex = { workspace = true, optional = true }
     63 serde = { workspace = true, default-features = false, features = [
     64   "alloc",
     65   "derive",
     66 ], optional = true }
     67 serde_json = { workspace = true, default-features = false, features = [
     68   "alloc",
     69 ], optional = true }
     70 sha2 = { workspace = true, default-features = false, optional = true }
     71 thiserror = { workspace = true }
     72 
     73 [dev-dependencies]
     74 radroots_nostr = { workspace = true, default-features = false, features = [
     75   "std",
     76   "events",
     77 ] }
     78 sqlx = { workspace = true, default-features = false, features = [
     79   "runtime-tokio",
     80   "sqlite",
     81 ] }
     82 tokio = { workspace = true, features = ["macros", "rt"] }
     83 
     84 [lints.rust]
     85 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage_nightly)'] }