Cargo.toml (2119B)
1 [package] 2 name = "radroots_protocol" 3 publish = ["crates-io"] 4 version = "0.1.0-alpha" 5 edition.workspace = true 6 authors.workspace = true 7 rust-version.workspace = true 8 license.workspace = true 9 description = "Versioned wire contracts for Radroots" 10 repository.workspace = true 11 homepage.workspace = true 12 documentation = "https://docs.rs/radroots_protocol" 13 readme = "README.md" 14 keywords = ["radroots", "protocol", "local-food", "wire-format"] 15 categories = ["encoding", "no-std"] 16 include = [ 17 "src/**", 18 "tests/**", 19 "!tests/package_boundary.rs", 20 "examples/**", 21 "Cargo.toml", 22 "README.md", 23 "LICENSE-APACHE", 24 "LICENSE-MIT", 25 ] 26 27 [package.metadata.docs.rs] 28 features = ["std", "serde", "commands", "terms", "commerce", "listing", "advertisement"] 29 30 [lib] 31 name = "radroots_protocol" 32 33 [features] 34 default = ["std", "serde"] 35 serde = ["dep:serde"] 36 std = ["serde?/std"] 37 commands = ["serde", "dep:radroots_domain", "dep:serde_json", "dep:sha2", "dep:zeroize"] 38 intent = ["dep:radroots_domain", "dep:sha2"] 39 nip01 = ["dep:radroots_identity", "dep:sha2", "dep:zeroize"] 40 chat = ["commands", "nip01", "intent"] 41 listing = ["commands", "nip01", "intent"] 42 advertisement = ["commands"] 43 terms = ["commands"] 44 private_rumor = ["commands", "nip01"] 45 commerce = ["terms", "private_rumor", "intent"] 46 47 [dependencies] 48 radroots_identity = { workspace = true, default-features = false, optional = true } 49 radroots_domain = { workspace = true, default-features = false, features = ["serde"], optional = true } 50 serde_json = { workspace = true, default-features = false, features = ["alloc", "raw_value"], optional = true } 51 sha2 = { workspace = true, default-features = false, optional = true } 52 zeroize = { workspace = true, default-features = false, features = ["alloc"], optional = true } 53 serde = { workspace = true, default-features = false, features = [ 54 "alloc", 55 "derive", 56 ], optional = true } 57 58 [dev-dependencies] 59 serde_json = { workspace = true, features = ["std"] } 60 61 [[example]] 62 name = "inspect_contract" 63 required-features = ["std"] 64 65 [[test]] 66 name = "public_profiles" 67 required-features = ["listing", "advertisement"] 68 69 [lints] 70 workspace = true