# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85.0"
name = "ckb"
version = "0.204.0"
authors = ["Nervos Core Dev <dev@nervos.org>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "ckb"
description = "CKB is the layer 1 of Nervos Network, a public/permissionless blockchain."
homepage = "https://github.com/nervosnetwork/ckb"
readme = "README.md"
license = "MIT"
repository = "https://github.com/nervosnetwork/ckb"

[features]
deadlock_detection = ["ckb-bin/deadlock_detection"]
default = []
march-native = ["ckb-bin/march-native"]
portable = ["ckb-bin/portable"]
profiling = [
    "tikv-jemallocator/profiling",
    "ckb-bin/profiling",
]
tokio-trace = ["console-subscriber"]
with_dns_seeding = ["ckb-bin/with_dns_seeding"]
with_sentry = ["ckb-bin/with_sentry"]

[[bin]]
name = "ckb"
path = "src/main.rs"

[dependencies.ckb-bin]
version = "1"

[dependencies.ckb-build-info]
version = "1"

[dependencies.console-subscriber]
version = "0.4.0"
optional = true

[dev-dependencies]

[build-dependencies.ckb-build-info]
version = "1"

[target.'cfg(all(not(target_env = "msvc"), not(target_os="macos")))'.dependencies.tikv-jemallocator]
version = "0.5.0"
features = ["unprefixed_malloc_on_supported_platforms"]

[target.'cfg(target_env = "msvc")'.dependencies.version-compare]
version = "0.2"

[target.'cfg(target_env = "msvc")'.dependencies.winreg]
version = "0.55"

[profile.bench.build-override]
opt-level = 3

[profile.prod]
lto = true
codegen-units = 1
inherits = "release"

[profile.release]
overflow-checks = true

[profile.release.build-override]
opt-level = 3
