| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373 |
- [package]
- name = "darkfi"
- version = "0.4.1"
- homepage = "https://dark.fi"
- description = "Anonymous. Uncensored. Sovereign."
- authors = ["Dyne.org foundation <foundation@dyne.org>"]
- repository = "https://codeberg.org/darkrenaissance/darkfi"
- license = "AGPL-3.0-only"
- edition = "2021"
- [lib]
- name = "darkfi"
- doctest = false
- bench = false
- #[profile.release]
- #debug = true
- #lto = "fat"
- #codegen-units = 1
- [workspace]
- members = [
- "bin/zkas",
- "bin/darkfid",
- "bin/minerd",
- "bin/darkfi-mmproxy",
- "bin/drk",
- #"bin/fud/fu",
- #"bin/fud/fud",
- "bin/genev/genevd",
- "bin/genev/genev-cli",
- "bin/darkirc",
- "bin/tau/taud",
- #"bin/tau/tau-cli",
- "bin/vanityaddr",
- "bin/lilith",
- "src/sdk",
- "src/sdk/python",
- "src/serial",
- "src/serial/derive",
- "src/serial/derive-internal",
- "src/contract/test-harness",
- "src/contract/money",
- "src/contract/dao",
- "src/contract/deployooor",
- "example/dchat/dchatd",
- ]
- [dependencies]
- # Hard dependencies
- libc = "0.2.155"
- log = "0.4.21"
- thiserror = "1.0.61"
- # async-runtime
- async-recursion = {version = "1.1.1", optional = true}
- async-trait = {version = "0.1.80", optional = true}
- futures = {version = "0.3.30", optional = true}
- smol = {version = "2.0.0", optional = true}
- pin-project-lite = {version = "0.2.14", optional = true}
- # Networking
- futures-rustls = {version = "0.26.0", default-features = false, features = ["logging", "tls12", "ring"], optional = true}
- # Pluggable Transports
- socket2 = {version = "0.5.7", features = ["all"], optional = true}
- arti-client = {version = "0.18.0", default-features = false, features = ["async-std", "compression", "error_detail", "rustls", "accel-sha1-asm", "accel-openssl", "onion-service-client", "onion-service-service"], optional = true}
- tor-error = {version = "0.18.0", optional = true}
- tor-rtcompat = {version = "0.18.0", features = ["async-std", "rustls"], optional = true}
- tor-hscrypto = {version = "0.18.0", optional = true}
- tor-hsservice = {version = "0.18.0", optional = true}
- tor-proto = {version = "0.18.0", optional = true}
- tor-cell = {version = "0.18.0", optional = true}
- # TLS cert utilities
- ed25519-compact = {version = "2.1.1", optional = true}
- rcgen = {version = "0.12.1", optional = true}
- rustls-pemfile = {version = "2.1.2", optional = true}
- x509-parser = {version = "0.16.0", features = ["validate", "verify"], optional = true}
- # Encoding
- bs58 = {version = "0.5.1", optional = true}
- serde = {version = "1.0.203", features = ["derive"], optional = true}
- tinyjson = {version = "2.5.1", optional = true}
- semver = {version = "1.0.23", optional = true}
- structopt = {version= "0.3.26", optional = true}
- structopt-toml = {version= "0.5.1", optional = true}
- toml = {version = "0.8.14", optional = true}
- # Utilities
- # TODO: check chrono usage and impl our own
- chrono = {version = "0.4.38", optional = true}
- darkfi-serial = {path = "src/serial", optional = true}
- darkfi-derive = {path = "src/serial/derive", optional = true}
- lazy_static = {version = "1.4.0", optional = true}
- num-bigint = {version = "0.4.5", optional = true}
- url = {version = "2.5.0", features = ["serde"], optional = true}
- # Misc
- simplelog = {version = "0.12.2", optional = true}
- # Crypto
- rand = {version = "0.8.5", optional = true}
- blake3 = {version = "1.5.1", features = ["rayon"], optional = true}
- crypto_api_chachapoly = {version = "0.5.0", optional = true}
- halo2_proofs = {version = "0.3.0", features = ["circuit-params"], optional = true}
- halo2_gadgets = {version = "0.3.0", features = ["circuit-params"], optional = true}
- # Smart contract runtime
- darkfi-sdk = {path = "src/sdk", optional = true}
- wasmer = {version = "4.3.1", optional = true}
- wasmer-compiler-singlepass = {version = "4.3.1", optional = true}
- wasmer-middlewares = {version = "4.3.1", optional = true}
- # SQLite stuff
- rusqlite = {version = "0.31.0", features = ["sqlcipher"], optional = true}
- libsqlite3-sys = {version = "0.28.0", features = ["sqlcipher"], optional = true}
- # Blockchain store
- sled = {version = "0.34.7", optional = true}
- sled-overlay = {version = "0.1.2", optional = true}
- # Miner
- randomx = {git = "https://github.com/darkrenaissance/RandomX", optional = true}
- [dev-dependencies]
- clap = {version = "4.4.11", features = ["derive"]}
- halo2_proofs = {version = "0.3.0", features = ["dev-graph", "sanity-checks"]}
- halo2_gadgets = "0.3.0"
- plotters = "0.3.6"
- easy-parallel = "3.3.1"
- prettytable-rs = "0.10.0"
- # Used for benchmarks
- criterion = { version = "0.5.1", features = ["html_reports"] }
- # -----BEGIN LIBRARY FEATURES-----
- [features]
- async-daemonize = ["system"]
- async-serial = ["darkfi-serial/async"]
- async-sdk = [
- "darkfi-sdk/async",
- "async-serial",
- ]
- blockchain = [
- "blake3",
- "sled",
- "sled-overlay",
- "num-bigint",
- "async-sdk",
- "async-serial",
- "darkfi-serial/num-bigint",
- "tx",
- "util",
- "zk",
- "zkas",
- ]
- validator = [
- "async-trait",
- "blake3",
- "crypto_api_chachapoly",
- "halo2_proofs",
- "lazy_static",
- "num-bigint",
- "rand",
- "randomx",
- "smol",
- "sled",
- "url",
- "async-sdk",
- "async-serial",
- "blockchain",
- "net",
- "rpc",
- "system",
- "tx",
- "util",
- "wasm-runtime",
- "zk",
- "zkas",
- ]
- geode = [
- "blake3",
- "futures",
- "smol",
- ]
- event-graph = [
- "async-trait",
- "async-recursion",
- "blake3",
- "num-bigint",
- "rand",
- "sled",
- "sled-overlay",
- "smol",
- "tinyjson",
- "bs58",
- "darkfi-serial",
- "darkfi-serial/collections",
- "darkfi-serial/hash",
- "net",
- "rpc",
- "system",
- "util",
- ]
- p2p-unix = []
- p2p-nym = []
- p2p-tcp = ["socket2"]
- p2p-tor = [
- "arti-client",
- "tor-hsservice",
- "tor-hscrypto",
- "tor-error",
- "tor-rtcompat",
- "tor-proto",
- "tor-cell",
- "libsqlite3-sys",
- ]
- net = [
- "async-trait",
- "ed25519-compact",
- "futures",
- "futures-rustls",
- "rand",
- "rcgen",
- "rustls-pemfile",
- "semver",
- "smol",
- "serde",
- "structopt",
- "structopt-toml",
- "url",
- "x509-parser",
- "darkfi-serial",
- "darkfi-serial/url",
- "async-serial",
- "system",
- "util",
- "p2p-tcp",
- "p2p-tor",
- #"p2p-nym",
- "p2p-unix",
- ]
- rpc = [
- "async-trait",
- "rand",
- "smol",
- "tinyjson",
- "url",
- "net",
- "system",
- "util",
- ]
- system = [
- "pin-project-lite",
- "rand",
- "smol",
- ]
- tx = [
- "blake3",
- "rand",
- "async-sdk",
- "async-serial",
- "zk",
- ]
- util = [
- "simplelog",
- "tinyjson",
- "darkfi-serial",
- ]
- wasm-runtime = [
- "wasmer",
- "wasmer-compiler-singlepass",
- "wasmer-middlewares",
- "darkfi-sdk",
- "darkfi-serial",
- "blockchain",
- "util",
- "zk",
- "zkas",
- ]
- zk = [
- "halo2_proofs",
- "halo2_gadgets",
- "rand",
- "async-serial",
- "async-sdk",
- "zkas",
- ]
- zkas = [
- "darkfi-serial",
- ]
- # -----END LIBRARY FEATURES-----
- [patch.crates-io]
- halo2_proofs = {git="https://github.com/parazyd/halo2", branch="v4"}
- halo2_gadgets = {git="https://github.com/parazyd/halo2", branch="v4"}
- # Temp smol-2.0 fix
- async-lock = {git="https://github.com/smol-rs/async-lock", rev="542831132f2c707aae1c380edd43452053433814"}
- [[bench]]
- name = "zk_arith"
- harness = false
- path = "bench/zk_arith.rs"
- [[bench]]
- name = "zk_from_json"
- harness = false
- path = "bench/zk_from_json.rs"
- [[bench]]
- name = "sled"
- harness = false
- path = "bench/sled.rs"
- # Crossbeam SkipMap vs Mutex protected HashMap.
- # Uncomment to enable, and add the following to dev-dependencies:
- # crossbeam-skiplist = "0.1.3"
- # rand = "0.8.5"
- #[[bench]]
- #name = "crossbeam"
- #harness = false
- #path = "bench/crossbeam.rs"
- # Top-level lints. Enabled optionally on a crate-level in their respective Cargo.toml files.
- [workspace.lints.clippy]
- #arithmetic_side_effects = "warn"
- #eq_op = "warn"
- #float_cmp = "warn"
- # integer_division = "warn"
- #large_futures = "warn"
- #large_stack_arrays = "warn"
- #large_stack_frames = "warn"
- #lossy_float_literal = "warn"
- #manual_slice_size_calculation = "warn"
- #modulo_one = "warn"
- #out_of_bounds_indexing = "warn"
- #overflow_check_conditional = "warn"
- #recursive_format_impl = "warn"
- #unchecked_duration_subtraction = "warn"
|