diff --git a/Cargo.toml b/Cargo.toml index bc1c5515d5106b..601bdbf1ba877a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,3 @@ -[profile.release-with-debug] -inherits = "release" -debug = true -split-debuginfo = "packed" -lto = false # Preserve the 'thin local LTO' for this build. - -[profile.release] -split-debuginfo = "unpacked" -lto = "thin" [workspace] members = [ @@ -175,16 +166,18 @@ check-cfg = [ [workspace.dependencies] Inflector = "0.11.4" -axum = "0.7.9" +aes-gcm-siv = "0.11.1" agave-banking-stage-ingress-types = { path = "banking-stage-ingress-types", version = "=2.2.17" } +agave-cargo-registry = { path = "cargo-registry", version = "=2.2.17" } agave-feature-set = { path = "feature-set", version = "=2.2.17" } +agave-geyser-plugin-interface = { path = "geyser-plugin-interface", version = "=2.2.17" } agave-precompiles = { path = "precompiles", version = "=2.2.17" } agave-reserved-account-keys = { path = "reserved-account-keys", version = "=2.2.17" } +agave-thread-manager = { path = "thread-manager", version = "=2.2.17" } agave-transaction-view = { path = "transaction-view", version = "=2.2.17" } -aquamarine = "0.6.0" -aes-gcm-siv = "0.11.1" ahash = "0.8.11" anyhow = "1.0.95" +aquamarine = "0.6.0" arbitrary = "1.4.1" ark-bn254 = "0.4.0" ark-ec = "0.4.0" @@ -199,6 +192,7 @@ async-channel = "1.9.0" async-lock = "3.4.0" async-trait = "0.1.86" atty = "0.2.11" +axum = "0.7.9" backoff = "0.4.0" base64 = "0.22.1" bincode = "1.3.3" @@ -216,8 +210,8 @@ bytes = "1.10" bzip2 = "0.4.4" caps = "0.5.5" cargo_metadata = "0.15.4" -cfg_eval = "0.1.2" cfg-if = "1.0.0" +cfg_eval = "0.1.2" chrono = { version = "0.4.39", default-features = false } chrono-humanize = "0.2.3" clap = "2.33.1" @@ -250,8 +244,8 @@ env_logger = "0.9.3" etcd-client = "0.11.1" fast-math = "0.1" fd-lock = "3.0.13" -flate2 = "1.0.31" five8_const = "0.1.3" +flate2 = "1.0.31" fnv = "1.0.7" fs_extra = "1.3.0" futures = "0.3.31" @@ -384,8 +378,6 @@ solana-bpf-loader-program = { path = "programs/bpf_loader", version = "=2.2.17" solana-bucket-map = { path = "bucket_map", version = "=2.2.17" } solana-builtins = { path = "builtins", version = "=2.2.17" } solana-builtins-default-costs = { path = "builtins-default-costs", version = "=2.2.17" } -agave-cargo-registry = { path = "cargo-registry", version = "=2.2.17" } -agave-thread-manager = { path = "thread-manager", version = "=2.2.17" } solana-clap-utils = { path = "clap-utils", version = "=2.2.17" } solana-clap-v3-utils = { path = "clap-v3-utils", version = "=2.2.17" } solana-cli = { path = "cli", version = "=2.2.17" } @@ -412,7 +404,6 @@ solana-derivation-path = "2.2.1" solana-download-utils = { path = "download-utils", version = "=2.2.17" } solana-ed25519-program = "2.2.2" solana-entry = { path = "entry", version = "=2.2.17" } -solana-program-entrypoint = "2.2.1" solana-epoch-info = "2.2.1" solana-epoch-rewards = "2.2.1" solana-epoch-rewards-hasher = "2.2.1" @@ -421,17 +412,15 @@ solana-example-mocks = "2.2.1" solana-faucet = { path = "faucet", version = "=2.2.17" } solana-feature-gate-client = "0.0.2" solana-feature-gate-interface = "2.2.2" -solana-fee-calculator = "2.2.1" solana-fee = { path = "fee", version = "=2.2.17" } +solana-fee-calculator = "2.2.1" solana-fee-structure = "2.2.1" +solana-file-download = "2.2.1" solana-frozen-abi = "2.2.1" solana-frozen-abi-macro = "2.2.1" -solana-tps-client = { path = "tps-client", version = "=2.2.17" } -solana-file-download = "2.2.1" solana-genesis = { path = "genesis", version = "=2.2.17" } solana-genesis-config = "2.2.1" solana-genesis-utils = { path = "genesis-utils", version = "=2.2.17" } -agave-geyser-plugin-interface = { path = "geyser-plugin-interface", version = "=2.2.17" } solana-geyser-plugin-manager = { path = "geyser-plugin-manager", version = "=2.2.17" } solana-gossip = { path = "gossip", version = "=2.2.17" } solana-hard-forks = "2.2.1" @@ -474,6 +463,7 @@ solana-poseidon = { path = "poseidon", version = "=2.2.17" } solana-precompile-error = "2.2.1" solana-presigner = "2.2.1" solana-program = { version = "2.2.1", default-features = false } +solana-program-entrypoint = "2.2.1" solana-program-error = "2.2.1" solana-program-memory = "2.2.1" solana-program-option = "2.2.1" @@ -490,38 +480,33 @@ solana-rent = "2.2.1" solana-rent-collector = "2.2.1" solana-rent-debits = "2.2.1" solana-reward-info = "2.2.1" -solana-sanitize = "2.2.1" -solana-secp256r1-program = "2.2.2" -solana-seed-derivable = "2.2.1" -solana-seed-phrase = "2.2.1" -solana-serde = "2.2.1" -solana-serde-varint = "2.2.1" -solana-serialize-utils = "2.2.1" -solana-sha256-hasher = "2.2.1" -solana-signature = { version = "2.2.1", default-features = false } -solana-signer = "2.2.1" -solana-slot-hashes = "2.2.1" -solana-slot-history = "2.2.1" -solana-time-utils = "2.2.1" -solana-timings = { path = "timings", version = "=2.2.17" } -solana-tls-utils = { path = "tls-utils", version = "=2.2.17" } -solana-unified-scheduler-logic = { path = "unified-scheduler-logic", version = "=2.2.17" } -solana-unified-scheduler-pool = { path = "unified-scheduler-pool", version = "=2.2.17" } solana-rpc = { path = "rpc", version = "=2.2.17" } solana-rpc-client = { path = "rpc-client", version = "=2.2.17", default-features = false } solana-rpc-client-api = { path = "rpc-client-api", version = "=2.2.17" } solana-rpc-client-nonce-utils = { path = "rpc-client-nonce-utils", version = "=2.2.17" } solana-runtime = { path = "runtime", version = "=2.2.17" } solana-runtime-transaction = { path = "runtime-transaction", version = "=2.2.17" } +solana-sanitize = "2.2.1" solana-sbpf = "=0.10.1" solana-sdk = "2.2.2" solana-sdk-ids = "2.2.1" solana-sdk-macro = "2.2.1" solana-secp256k1-program = "2.2.1" solana-secp256k1-recover = "2.2.1" +solana-secp256r1-program = "2.2.2" +solana-seed-derivable = "2.2.1" +solana-seed-phrase = "2.2.1" solana-send-transaction-service = { path = "send-transaction-service", version = "=2.2.17" } +solana-serde = "2.2.1" +solana-serde-varint = "2.2.1" +solana-serialize-utils = "2.2.1" +solana-sha256-hasher = "2.2.1" solana-short-vec = "2.2.1" solana-shred-version = "2.2.1" +solana-signature = { version = "2.2.1", default-features = false } +solana-signer = "2.2.1" +solana-slot-hashes = "2.2.1" +solana-slot-history = "2.2.1" solana-stable-layout = "2.2.1" solana-stake-interface = { version = "1.2.1" } solana-stake-program = { path = "programs/stake", version = "=2.2.17" } @@ -539,17 +524,23 @@ solana-sysvar = "2.2.1" solana-sysvar-id = "2.2.1" solana-test-validator = { path = "test-validator", version = "=2.2.17" } solana-thin-client = { path = "thin-client", version = "=2.2.17" } -solana-transaction = "2.2.2" -solana-transaction-error = "2.2.1" +solana-time-utils = "2.2.1" +solana-timings = { path = "timings", version = "=2.2.17" } +solana-tls-utils = { path = "tls-utils", version = "=2.2.17" } +solana-tps-client = { path = "tps-client", version = "=2.2.17" } solana-tpu-client = { path = "tpu-client", version = "=2.2.17", default-features = false } solana-tpu-client-next = { path = "tpu-client-next", version = "=2.2.17" } +solana-transaction = "2.2.2" solana-transaction-context = { path = "transaction-context", version = "=2.2.17", features = [ "bincode", "debug-signature" ] } +solana-transaction-error = "2.2.1" +solana-transaction-metrics-tracker = { path = "transaction-metrics-tracker", version = "=2.2.17" } solana-transaction-status = { path = "transaction-status", version = "=2.2.17" } solana-transaction-status-client-types = { path = "transaction-status-client-types", version = "=2.2.17" } -solana-transaction-metrics-tracker = { path = "transaction-metrics-tracker", version = "=2.2.17" } solana-turbine = { path = "turbine", version = "=2.2.17" } solana-type-overrides = { path = "type-overrides", version = "=2.2.17" } solana-udp-client = { path = "udp-client", version = "=2.2.17" } +solana-unified-scheduler-logic = { path = "unified-scheduler-logic", version = "=2.2.17" } +solana-unified-scheduler-pool = { path = "unified-scheduler-pool", version = "=2.2.17" } solana-validator-exit = "2.2.1" solana-version = { path = "version", version = "=2.2.17" } solana-vote = { path = "vote", version = "=2.2.17" } @@ -610,6 +601,15 @@ x509-parser = "0.14.0" # See "zeroize versioning issues" below if you are updating this version. zeroize = { version = "1.7", default-features = false } zstd = "0.13.2" +[profile.release-with-debug] +inherits = "release" +debug = true +split-debuginfo = "packed" +lto = false # Preserve the 'thin local LTO' for this build. + +[profile.release] +split-debuginfo = "unpacked" +lto = "thin" # curve25519-dalek uses the simd backend by default in v4 if possible, # which has very slow performance on some platforms with opt-level 0, diff --git a/account-decoder-client-types/Cargo.toml b/account-decoder-client-types/Cargo.toml index 93b8b922b6cd6d..433ecc37929e7c 100644 --- a/account-decoder-client-types/Cargo.toml +++ b/account-decoder-client-types/Cargo.toml @@ -9,6 +9,14 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] +all-features = true +rustdoc-args = ["--cfg=docsrs"] + +[features] +zstd = ["dep:zstd"] + [dependencies] base64 = { workspace = true } bs58 = { workspace = true, features = ["std"] } @@ -18,11 +26,3 @@ serde_json = { workspace = true } solana-account = { workspace = true } solana-pubkey = { workspace = true } zstd = { workspace = true, optional = true } - -[features] -zstd = ["dep:zstd"] - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] -all-features = true -rustdoc-args = ["--cfg=docsrs"] diff --git a/account-decoder/Cargo.toml b/account-decoder/Cargo.toml index 27ed2e8f4621fc..1c1711b395a79c 100644 --- a/account-decoder/Cargo.toml +++ b/account-decoder/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] Inflector = { workspace = true } base64 = { workspace = true } @@ -49,8 +52,5 @@ solana-program = { workspace = true, default-features = false } solana-pubkey = { workspace = true, features = ["rand"] } spl-pod = { workspace = true } -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - [lints] workspace = true diff --git a/accounts-bench/Cargo.toml b/accounts-bench/Cargo.toml index 261c5e7b2fc84f..5613bf4f88e3f7 100644 --- a/accounts-bench/Cargo.toml +++ b/accounts-bench/Cargo.toml @@ -8,6 +8,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[features] +dev-context-only-utils = [] + [dependencies] clap = { workspace = true } log = { workspace = true } @@ -17,9 +23,3 @@ solana-logger = { workspace = true } solana-measure = { workspace = true } solana-sdk = { workspace = true } solana-version = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - -[features] -dev-context-only-utils = [] diff --git a/accounts-cluster-bench/Cargo.toml b/accounts-cluster-bench/Cargo.toml index 5593de62c802f9..7647247f9531a8 100644 --- a/accounts-cluster-bench/Cargo.toml +++ b/accounts-cluster-bench/Cargo.toml @@ -8,6 +8,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] clap = { workspace = true } log = { workspace = true } @@ -38,6 +41,3 @@ solana-faucet = { workspace = true } solana-local-cluster = { workspace = true } solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } solana-test-validator = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/accounts-db/Cargo.toml b/accounts-db/Cargo.toml index e4d391195db2c3..bdab4ecf81e01c 100644 --- a/accounts-db/Cargo.toml +++ b/accounts-db/Cargo.toml @@ -9,6 +9,27 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_accounts_db" + +[features] +dev-context-only-utils = [ + "dep:qualifier_attr", + "dep:solana-stake-program", + "dep:solana-vote-program", + "solana-pubkey/rand", +] +frozen-abi = [ + "dep:solana-frozen-abi", + "dep:solana-frozen-abi-macro", + "solana-sdk/frozen-abi", + "solana-vote-program/frozen-abi", +] + [dependencies] ahash = { workspace = true } bincode = { workspace = true } @@ -62,10 +83,6 @@ tar = { workspace = true } tempfile = { workspace = true } thiserror = { workspace = true } -[lib] -crate-type = ["lib"] -name = "solana_accounts_db" - [dev-dependencies] assert_matches = { workspace = true } criterion = { workspace = true } @@ -83,23 +100,6 @@ strum = { workspace = true, features = ["derive"] } strum_macros = { workspace = true } test-case = { workspace = true } -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - -[features] -dev-context-only-utils = [ - "dep:qualifier_attr", - "dep:solana-stake-program", - "dep:solana-vote-program", - "solana-pubkey/rand", -] -frozen-abi = [ - "dep:solana-frozen-abi", - "dep:solana-frozen-abi-macro", - "solana-sdk/frozen-abi", - "solana-vote-program/frozen-abi", -] - [[bench]] name = "bench_accounts_file" harness = false diff --git a/accounts-db/accounts-hash-cache-tool/Cargo.toml b/accounts-db/accounts-hash-cache-tool/Cargo.toml index 525641902038b1..8413e5c5da492a 100644 --- a/accounts-db/accounts-hash-cache-tool/Cargo.toml +++ b/accounts-db/accounts-hash-cache-tool/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[features] +dev-context-only-utils = [] + [dependencies] ahash = { workspace = true } anyhow = { workspace = true } @@ -20,6 +23,3 @@ solana-accounts-db = { workspace = true } solana-clap-utils = { workspace = true } solana-pubkey = { workspace = true } solana-version = { workspace = true } - -[features] -dev-context-only-utils = [] diff --git a/accounts-db/store-histogram/Cargo.toml b/accounts-db/store-histogram/Cargo.toml index 75cdea3eb1f362..e762b25c087b2b 100644 --- a/accounts-db/store-histogram/Cargo.toml +++ b/accounts-db/store-histogram/Cargo.toml @@ -9,9 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[features] +dev-context-only-utils = [] + [dependencies] clap = { workspace = true } solana-version = { workspace = true } - -[features] -dev-context-only-utils = [] diff --git a/accounts-db/store-tool/Cargo.toml b/accounts-db/store-tool/Cargo.toml index 506758e0c01a9e..7b2c8c2e79706d 100644 --- a/accounts-db/store-tool/Cargo.toml +++ b/accounts-db/store-tool/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[features] +dev-context-only-utils = [] + [dependencies] ahash = { workspace = true } clap = { workspace = true } @@ -18,6 +21,3 @@ solana-accounts-db = { workspace = true, features = ["dev-context-only-utils"] } solana-pubkey = { workspace = true } solana-system-interface = { workspace = true } solana-version = { workspace = true } - -[features] -dev-context-only-utils = [] diff --git a/banking-bench/Cargo.toml b/banking-bench/Cargo.toml index a86629552ddf84..d0ad7a3eaaf356 100644 --- a/banking-bench/Cargo.toml +++ b/banking-bench/Cargo.toml @@ -8,6 +8,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[features] +dev-context-only-utils = [] + [dependencies] agave-banking-stage-ingress-types = { workspace = true } assert_matches = { workspace = true } @@ -29,9 +35,3 @@ solana-sdk = { workspace = true } solana-streamer = { workspace = true } solana-tpu-client = { workspace = true } solana-version = { workspace = true } - -[features] -dev-context-only-utils = [] - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/banks-client/Cargo.toml b/banks-client/Cargo.toml index de43337235a5a9..18c33a20e60a97 100644 --- a/banks-client/Cargo.toml +++ b/banks-client/Cargo.toml @@ -9,6 +9,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_banks_client" + [dependencies] borsh = { workspace = true } futures = { workspace = true } @@ -24,10 +31,3 @@ tokio-serde = { workspace = true, features = ["bincode"] } [dev-dependencies] solana-banks-server = { workspace = true } solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } - -[lib] -crate-type = ["lib"] -name = "solana_banks_client" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/banks-interface/Cargo.toml b/banks-interface/Cargo.toml index b862f3acdbde39..9327e21ff3ea9c 100644 --- a/banks-interface/Cargo.toml +++ b/banks-interface/Cargo.toml @@ -9,16 +9,16 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_banks_interface" + [dependencies] serde = { workspace = true } serde_derive = { workspace = true } solana-sdk = { workspace = true } solana-transaction-context = { workspace = true } tarpc = { workspace = true, features = ["full"] } - -[lib] -crate-type = ["lib"] -name = "solana_banks_interface" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/banks-server/Cargo.toml b/banks-server/Cargo.toml index b699c71d8c99b4..827a3af4e934b0 100644 --- a/banks-server/Cargo.toml +++ b/banks-server/Cargo.toml @@ -9,6 +9,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_banks_server" + [dependencies] agave-feature-set = { workspace = true } bincode = { workspace = true } @@ -24,10 +31,3 @@ solana-svm = { workspace = true } tarpc = { workspace = true, features = ["full"] } tokio = { workspace = true, features = ["full"] } tokio-serde = { workspace = true, features = ["bincode"] } - -[lib] -crate-type = ["lib"] -name = "solana_banks_server" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/bench-streamer/Cargo.toml b/bench-streamer/Cargo.toml index 2af7ec8f39be94..70c97e1cf4ab6c 100644 --- a/bench-streamer/Cargo.toml +++ b/bench-streamer/Cargo.toml @@ -8,12 +8,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] clap = { version = "3.1.5", features = ["cargo"] } crossbeam-channel = { workspace = true } solana-net-utils = { workspace = true } solana-streamer = { workspace = true } solana-version = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/bench-tps/Cargo.toml b/bench-tps/Cargo.toml index fe7dc3a82d6e53..357cab30740189 100644 --- a/bench-tps/Cargo.toml +++ b/bench-tps/Cargo.toml @@ -8,6 +8,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[features] +dev-context-only-utils = [] + [dependencies] chrono = { workspace = true } clap = { workspace = true } @@ -54,9 +60,3 @@ solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } solana-test-validator = { workspace = true } solana-tps-client = { workspace = true, features = ["bank-client"] } tempfile = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - -[features] -dev-context-only-utils = [] diff --git a/bench-vote/Cargo.toml b/bench-vote/Cargo.toml index a7b69e3271e53e..0515fda79a83aa 100644 --- a/bench-vote/Cargo.toml +++ b/bench-vote/Cargo.toml @@ -8,6 +8,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] bincode = { workspace = true } clap = { workspace = true } @@ -21,6 +24,3 @@ solana-sdk = { workspace = true } solana-streamer = { workspace = true } solana-version = { workspace = true } solana-vote-program = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/bloom/Cargo.toml b/bloom/Cargo.toml index 5c8e1770d2165e..35a0df61ce8fc4 100644 --- a/bloom/Cargo.toml +++ b/bloom/Cargo.toml @@ -9,6 +9,20 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_bloom" + +[features] +frozen-abi = [ + "dep:solana-frozen-abi", + "dep:solana-frozen-abi-macro", + "solana-hash/frozen-abi", +] + [dependencies] bv = { workspace = true, features = ["serde"] } fnv = { workspace = true } @@ -31,19 +45,5 @@ solana-hash = { workspace = true } solana-sha256-hasher = { workspace = true } solana-signature = { workspace = true, features = ["std"] } -[lib] -crate-type = ["lib"] -name = "solana_bloom" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - -[features] -frozen-abi = [ - "dep:solana-frozen-abi", - "dep:solana-frozen-abi-macro", - "solana-hash/frozen-abi", -] - [lints] workspace = true diff --git a/bucket_map/Cargo.toml b/bucket_map/Cargo.toml index 00f26c25611a39..cb736e82c581a8 100644 --- a/bucket_map/Cargo.toml +++ b/bucket_map/Cargo.toml @@ -10,6 +10,10 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["lib"] +name = "solana_bucket_map" + [dependencies] bv = { workspace = true, features = ["serde"] } bytemuck = { workspace = true } @@ -30,9 +34,5 @@ rayon = { workspace = true } solana-logger = { workspace = true } solana-pubkey = { workspace = true, features = ["rand"] } -[lib] -crate-type = ["lib"] -name = "solana_bucket_map" - [[bench]] name = "bucket_map" diff --git a/builtins-default-costs/Cargo.toml b/builtins-default-costs/Cargo.toml index 6884f1932aade6..7983dd160a8480 100644 --- a/builtins-default-costs/Cargo.toml +++ b/builtins-default-costs/Cargo.toml @@ -9,6 +9,19 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] +# Add additional builtin programs here + +[lib] +crate-type = ["lib"] +name = "solana_builtins_default_costs" + +[features] +frozen-abi = ["dep:solana-frozen-abi", "solana-vote-program/frozen-abi"] +dev-context-only-utils = [] +svm-internal = [] + [dependencies] agave-feature-set = { workspace = true } ahash = { workspace = true } @@ -28,27 +41,11 @@ solana-sdk-ids = { workspace = true } solana-stake-program = { workspace = true } solana-system-program = { workspace = true } solana-vote-program = { workspace = true } -# Add additional builtin programs here - -[lib] -crate-type = ["lib"] -name = "solana_builtins_default_costs" [dev-dependencies] rand = "0.8.5" solana-builtins-default-costs = { path = ".", features = ["svm-internal"] } static_assertions = { workspace = true } -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - -[features] -frozen-abi = [ - "dep:solana-frozen-abi", - "solana-vote-program/frozen-abi", -] -dev-context-only-utils = [] -svm-internal = [] - [lints] workspace = true diff --git a/cargo-registry/Cargo.toml b/cargo-registry/Cargo.toml index d91148e1f2790d..907c49040c57ed 100644 --- a/cargo-registry/Cargo.toml +++ b/cargo-registry/Cargo.toml @@ -9,6 +9,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[features] +dev-context-only-utils = [] + [dependencies] clap = { workspace = true } flate2 = { workspace = true } @@ -38,9 +44,3 @@ tokio = { workspace = true, features = ["full"] } toml = { workspace = true } [dev-dependencies] - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - -[features] -dev-context-only-utils = [] diff --git a/ci/docker/Dockerfile b/ci/docker/Dockerfile index 92e42a625e5235..b3945597527ad8 100644 --- a/ci/docker/Dockerfile +++ b/ci/docker/Dockerfile @@ -80,7 +80,7 @@ RUN \ # uncomment once the dcou-parition related patch is upstreamed... # cargo install cargo-hack && \ cargo install --git https://github.com/anza-xyz/cargo-hack.git --rev 5e59c3ec6c661c02601487c0d4b2a2649fe06c9f cargo-hack && \ - cargo install cargo-sort && \ + cargo install cargo-sort@^2 && \ cargo install mdbook && \ cargo install mdbook-linkcheck && \ cargo install svgbob_cli && \ diff --git a/clap-utils/Cargo.toml b/clap-utils/Cargo.toml index da9298ca776777..a0e9f610816e4a 100644 --- a/clap-utils/Cargo.toml +++ b/clap-utils/Cargo.toml @@ -9,6 +9,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +name = "solana_clap_utils" + [dependencies] chrono = { workspace = true, features = ["default"] } clap = "2.33.0" @@ -37,9 +43,3 @@ assert_matches = { workspace = true } solana-pubkey = { workspace = true, features = ["rand"] } solana-system-interface = { workspace = true, features = ["bincode"] } tempfile = { workspace = true } - -[lib] -name = "solana_clap_utils" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/clap-v3-utils/Cargo.toml b/clap-v3-utils/Cargo.toml index 1a2d15ce5986d3..4dce300b4f38f2 100644 --- a/clap-v3-utils/Cargo.toml +++ b/clap-v3-utils/Cargo.toml @@ -9,6 +9,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +name = "solana_clap_v3_utils" + [dependencies] chrono = { workspace = true, features = ["default"] } clap = { version = "3.2.23", features = ["cargo"] } @@ -40,9 +46,3 @@ assert_matches = { workspace = true } solana-pubkey = { workspace = true, features = ["rand"] } solana-system-interface = { workspace = true, features = ["bincode"] } tempfile = { workspace = true } - -[lib] -name = "solana_clap_v3_utils" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/cli-config/Cargo.toml b/cli-config/Cargo.toml index 282a168481cd3d..c200a4dd2a593f 100644 --- a/cli-config/Cargo.toml +++ b/cli-config/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] dirs-next = { workspace = true } lazy_static = { workspace = true } @@ -21,6 +24,3 @@ url = { workspace = true } [dev-dependencies] anyhow = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/cli-output/Cargo.toml b/cli-output/Cargo.toml index 3cc8cd9bc270eb..a3620eaccf1ca2 100644 --- a/cli-output/Cargo.toml +++ b/cli-output/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] Inflector = { workspace = true } agave-reserved-account-keys = { workspace = true } @@ -51,6 +54,3 @@ ed25519-dalek = { workspace = true } solana-keypair = { workspace = true } solana-signer = { workspace = true } solana-transaction-context = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/cli/Cargo.toml b/cli/Cargo.toml index c8415d677400f8..219c0e51fcbb01 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -9,6 +9,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[[bin]] +name = "solana" +path = "src/main.rs" + [dependencies] agave-feature-set = { workspace = true } bincode = { workspace = true } @@ -102,10 +109,3 @@ solana-streamer = { workspace = true } solana-test-validator = { workspace = true } tempfile = { workspace = true } test-case = { workspace = true } - -[[bin]] -name = "solana" -path = "src/main.rs" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/client-test/Cargo.toml b/client-test/Cargo.toml index f806e4ca9592a3..2240a6f19e757a 100644 --- a/client-test/Cargo.toml +++ b/client-test/Cargo.toml @@ -10,6 +10,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] futures-util = { workspace = true } rand = { workspace = true } @@ -38,6 +41,3 @@ tungstenite = { workspace = true, features = ["rustls-tls-webpki-roots"] } solana-logger = { workspace = true } solana-rpc = { workspace = true, features = ["dev-context-only-utils"] } solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/client/Cargo.toml b/client/Cargo.toml index 986a926fd87761..b9bf4f9604e658 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] async-trait = { workspace = true } bincode = { workspace = true } @@ -52,6 +55,3 @@ tokio = { workspace = true, features = ["full"] } [dev-dependencies] crossbeam-channel = { workspace = true } solana-net-utils = { workspace = true, features = ["dev-context-only-utils"] } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/compute-budget-instruction/Cargo.toml b/compute-budget-instruction/Cargo.toml index 309b151deab540..324ce9bb919e58 100644 --- a/compute-budget-instruction/Cargo.toml +++ b/compute-budget-instruction/Cargo.toml @@ -9,6 +9,16 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_compute_budget_instruction" + +[features] +dev-context-only-utils = [] + [dependencies] agave-feature-set = { workspace = true } log = { workspace = true } @@ -24,10 +34,6 @@ solana-svm-transaction = { workspace = true } solana-transaction-error = { workspace = true } thiserror = { workspace = true } -[lib] -crate-type = ["lib"] -name = "solana_compute_budget_instruction" - [dev-dependencies] bincode = { workspace = true } criterion = { workspace = true } @@ -41,12 +47,6 @@ solana-signer = { workspace = true } solana-system-interface = { workspace = true } solana-transaction = { workspace = true, features = ["blake3"] } -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - -[features] -dev-context-only-utils = [] - [[bench]] name = "process_compute_budget_instructions" harness = false diff --git a/compute-budget/Cargo.toml b/compute-budget/Cargo.toml index 78d4761cdc664b..d13422edee2dc9 100644 --- a/compute-budget/Cargo.toml +++ b/compute-budget/Cargo.toml @@ -9,6 +9,10 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[features] +dev-context-only-utils = ["dep:qualifier_attr"] +frozen-abi = ["dep:solana-frozen-abi", "solana-fee-structure/frozen-abi"] + [dependencies] qualifier_attr = { workspace = true, optional = true } solana-fee-structure = { workspace = true } @@ -17,9 +21,5 @@ solana-frozen-abi = { workspace = true, optional = true, features = [ ] } solana-program-entrypoint = { workspace = true } -[features] -dev-context-only-utils = ["dep:qualifier_attr"] -frozen-abi = ["dep:solana-frozen-abi", "solana-fee-structure/frozen-abi"] - [lints] workspace = true diff --git a/core/Cargo.toml b/core/Cargo.toml index 34c0b97c0e63a1..4d2e72fb5ff602 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -10,8 +10,33 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[badges] -codecov = { repository = "solana-labs/solana", branch = "master", service = "github" } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[features] +dev-context-only-utils = [ + "solana-perf/dev-context-only-utils", + "solana-runtime/dev-context-only-utils", + "solana-streamer/dev-context-only-utils", +] +frozen-abi = [ + "dep:solana-frozen-abi", + "dep:solana-frozen-abi-macro", + "solana-accounts-db/frozen-abi", + "solana-bloom/frozen-abi", + "solana-compute-budget/frozen-abi", + "solana-cost-model/frozen-abi", + "solana-gossip/frozen-abi", + "solana-ledger/frozen-abi", + "solana-perf/frozen-abi", + "solana-program-runtime/frozen-abi", + "solana-runtime/frozen-abi", + "solana-sdk/frozen-abi", + "solana-short-vec/frozen-abi", + "solana-svm/frozen-abi", + "solana-vote/frozen-abi", + "solana-vote-program/frozen-abi", +] [dependencies] agave-banking-stage-ingress-types = { workspace = true } @@ -106,6 +131,9 @@ thiserror = { workspace = true } tokio = { workspace = true, features = ["full"] } trees = { workspace = true } +[target."cfg(unix)".dependencies] +sysctl = { workspace = true } + [dev-dependencies] agave-reserved-account-keys = { workspace = true } fs_extra = { workspace = true } @@ -135,33 +163,8 @@ static_assertions = { workspace = true } systemstat = { workspace = true } test-case = { workspace = true } -[target."cfg(unix)".dependencies] -sysctl = { workspace = true } - -[features] -dev-context-only-utils = [ - "solana-perf/dev-context-only-utils", - "solana-runtime/dev-context-only-utils", - "solana-streamer/dev-context-only-utils", -] -frozen-abi = [ - "dep:solana-frozen-abi", - "dep:solana-frozen-abi-macro", - "solana-accounts-db/frozen-abi", - "solana-bloom/frozen-abi", - "solana-compute-budget/frozen-abi", - "solana-cost-model/frozen-abi", - "solana-gossip/frozen-abi", - "solana-ledger/frozen-abi", - "solana-perf/frozen-abi", - "solana-program-runtime/frozen-abi", - "solana-runtime/frozen-abi", - "solana-sdk/frozen-abi", - "solana-short-vec/frozen-abi", - "solana-svm/frozen-abi", - "solana-vote/frozen-abi", - "solana-vote-program/frozen-abi", -] +[badges] +codecov = { repository = "solana-labs/solana", branch = "master", service = "github" } [[bench]] name = "banking_stage" @@ -172,8 +175,5 @@ name = "gen_keys" [[bench]] name = "sigverify_stage" -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - [lints] workspace = true diff --git a/cost-model/Cargo.toml b/cost-model/Cargo.toml index ab1fd16e452717..3c3eb25088a274 100644 --- a/cost-model/Cargo.toml +++ b/cost-model/Cargo.toml @@ -9,6 +9,29 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_cost_model" + +[features] +dev-context-only-utils = [ + "dep:solana-hash", + "dep:solana-message", + "dep:solana-signature", + "dep:solana-transaction", + "solana-compute-budget-interface/dev-context-only-utils", +] +frozen-abi = [ + "dep:solana-frozen-abi", + "dep:solana-frozen-abi-macro", + "solana-compute-budget/frozen-abi", + "solana-pubkey/frozen-abi", + "solana-vote-program/frozen-abi", +] + [dependencies] agave-feature-set = { workspace = true } ahash = { workspace = true } @@ -42,10 +65,6 @@ solana-transaction = { workspace = true, optional = true } solana-transaction-error = { workspace = true } solana-vote-program = { workspace = true } -[lib] -crate-type = ["lib"] -name = "solana_cost_model" - [dev-dependencies] agave-reserved-account-keys = { workspace = true } itertools = { workspace = true } @@ -70,25 +89,6 @@ solana-system-transaction = { workspace = true } static_assertions = { workspace = true } test-case = { workspace = true } -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - -[features] -dev-context-only-utils = [ - "dep:solana-hash", - "dep:solana-message", - "dep:solana-signature", - "dep:solana-transaction", - "solana-compute-budget-interface/dev-context-only-utils" -] -frozen-abi = [ - "dep:solana-frozen-abi", - "dep:solana-frozen-abi-macro", - "solana-compute-budget/frozen-abi", - "solana-pubkey/frozen-abi", - "solana-vote-program/frozen-abi" -] - [[bench]] name = "cost_tracker" diff --git a/curves/curve25519/Cargo.toml b/curves/curve25519/Cargo.toml index 597e8f25603517..7beb5dc7499bbc 100644 --- a/curves/curve25519/Cargo.toml +++ b/curves/curve25519/Cargo.toml @@ -19,11 +19,11 @@ bytemuck_derive = { workspace = true } subtle = { workspace = true } thiserror = { workspace = true } -[target.'cfg(target_os = "solana")'.dependencies] -solana-define-syscall = { workspace = true } - [target.'cfg(not(target_os = "solana"))'.dependencies] curve25519-dalek = { workspace = true, features = ["serde"] } +[target.'cfg(target_os = "solana")'.dependencies] +solana-define-syscall = { workspace = true } + [lints] workspace = true diff --git a/dos/Cargo.toml b/dos/Cargo.toml index 675c1761e52156..db9ffef5091671 100644 --- a/dos/Cargo.toml +++ b/dos/Cargo.toml @@ -9,6 +9,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[features] +dev-context-only-utils = [] + [dependencies] bincode = { workspace = true } clap = { version = "3.1.5", features = ["derive", "cargo"] } @@ -36,13 +42,7 @@ solana-tps-client = { workspace = true } solana-tpu-client = { workspace = true } solana-version = { workspace = true } -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - [dev-dependencies] solana-core = { workspace = true, features = ["dev-context-only-utils"] } solana-local-cluster = { workspace = true } solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } - -[features] -dev-context-only-utils = [] diff --git a/download-utils/Cargo.toml b/download-utils/Cargo.toml index 78a64d1e510cde..7d725cec277de5 100644 --- a/download-utils/Cargo.toml +++ b/download-utils/Cargo.toml @@ -9,6 +9,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_download_utils" + [dependencies] log = { workspace = true } solana-clock = { workspace = true } @@ -18,10 +25,3 @@ solana-runtime = { workspace = true } [dev-dependencies] solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } - -[lib] -crate-type = ["lib"] -name = "solana_download_utils" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/entry/Cargo.toml b/entry/Cargo.toml index 4ea3d9e58e5236..093cbbd165e546 100644 --- a/entry/Cargo.toml +++ b/entry/Cargo.toml @@ -9,6 +9,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_entry" + [dependencies] bincode = { workspace = true } crossbeam-channel = { workspace = true } @@ -43,12 +50,5 @@ solana-signer = { workspace = true } solana-system-transaction = { workspace = true } solana-transaction = { workspace = true, features = ["verify"] } -[lib] -crate-type = ["lib"] -name = "solana_entry" - [[bench]] name = "entry_sigverify" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/faucet/Cargo.toml b/faucet/Cargo.toml index db33594b79375c..b34bfc3c6b7e64 100644 --- a/faucet/Cargo.toml +++ b/faucet/Cargo.toml @@ -9,6 +9,17 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_faucet" + +[[bin]] +name = "solana-faucet" +path = "src/bin/faucet.rs" + [dependencies] bincode = { workspace = true } clap = { workspace = true } @@ -35,14 +46,3 @@ solana-version = { workspace = true } spl-memo = { version = "=6.0.0", features = ["no-entrypoint"] } thiserror = { workspace = true } tokio = { workspace = true, features = ["full"] } - -[lib] -crate-type = ["lib"] -name = "solana_faucet" - -[[bin]] -name = "solana-faucet" -path = "src/bin/faucet.rs" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/feature-set/Cargo.toml b/feature-set/Cargo.toml index 96e1ca40914467..4e61cb2aaa07b4 100644 --- a/feature-set/Cargo.toml +++ b/feature-set/Cargo.toml @@ -9,6 +9,9 @@ license = { workspace = true } edition = { workspace = true } readme = false +[features] +frozen-abi = ["dep:solana-frozen-abi", "dep:solana-frozen-abi-macro"] + [dependencies] ahash = { workspace = true } solana-epoch-schedule = { workspace = true } @@ -22,8 +25,5 @@ solana-hash = { workspace = true } solana-pubkey = { workspace = true, default-features = false } solana-sha256-hasher = { workspace = true } -[features] -frozen-abi = ["dep:solana-frozen-abi", "dep:solana-frozen-abi-macro"] - [lints] workspace = true diff --git a/genesis-utils/Cargo.toml b/genesis-utils/Cargo.toml index cffc68a9aaa796..d33b0acfe6decb 100644 --- a/genesis-utils/Cargo.toml +++ b/genesis-utils/Cargo.toml @@ -9,16 +9,16 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_genesis_utils" + [dependencies] log = { workspace = true } solana-accounts-db = { workspace = true } solana-download-utils = { workspace = true } solana-rpc-client = { workspace = true } solana-sdk = { workspace = true } - -[lib] -crate-type = ["lib"] -name = "solana_genesis_utils" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/genesis/Cargo.toml b/genesis/Cargo.toml index 42a5866e2a579c..0ce41ffc68aefb 100644 --- a/genesis/Cargo.toml +++ b/genesis/Cargo.toml @@ -9,6 +9,16 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +name = "solana_genesis" + +[[bin]] +name = "solana-genesis" +path = "src/main.rs" + [dependencies] agave-feature-set = { workspace = true } base64 = { workspace = true } @@ -36,13 +46,3 @@ tempfile = { workspace = true } [dev-dependencies] solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } - -[[bin]] -name = "solana-genesis" -path = "src/main.rs" - -[lib] -name = "solana_genesis" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/geyser-plugin-interface/Cargo.toml b/geyser-plugin-interface/Cargo.toml index 465eca2c8bb6a7..6a39745cab0c6c 100644 --- a/geyser-plugin-interface/Cargo.toml +++ b/geyser-plugin-interface/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] log = { workspace = true, features = ["std"] } solana-clock = { workspace = true } @@ -16,6 +19,3 @@ solana-signature = { workspace = true } solana-transaction = { workspace = true } solana-transaction-status = { workspace = true } thiserror = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/geyser-plugin-manager/Cargo.toml b/geyser-plugin-manager/Cargo.toml index 54459d54aab829..2637384dc1a331 100644 --- a/geyser-plugin-manager/Cargo.toml +++ b/geyser-plugin-manager/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] agave-geyser-plugin-interface = { workspace = true } bs58 = { workspace = true } @@ -33,6 +36,3 @@ solana-transaction = { workspace = true } solana-transaction-status = { workspace = true } thiserror = { workspace = true } tokio = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/gossip/Cargo.toml b/gossip/Cargo.toml index c0ecb76e40cfbf..cddfeb518413e7 100644 --- a/gossip/Cargo.toml +++ b/gossip/Cargo.toml @@ -9,6 +9,28 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[[bin]] +name = "solana-gossip" +path = "src/main.rs" + +[features] +frozen-abi = [ + "dep:solana-frozen-abi", + "dep:solana-frozen-abi-macro", + "solana-bloom/frozen-abi", + "solana-ledger/frozen-abi", + "solana-perf/frozen-abi", + "solana-runtime/frozen-abi", + "solana-sdk/frozen-abi", + "solana-short-vec/frozen-abi", + "solana-version/frozen-abi", + "solana-vote/frozen-abi", + "solana-vote-program/frozen-abi", +] + [dependencies] agave-feature-set = { workspace = true } assert_matches = { workspace = true } @@ -74,21 +96,6 @@ solana-perf = { workspace = true, features = ["dev-context-only-utils"] } solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } test-case = { workspace = true } -[features] -frozen-abi = [ - "dep:solana-frozen-abi", - "dep:solana-frozen-abi-macro", - "solana-bloom/frozen-abi", - "solana-ledger/frozen-abi", - "solana-perf/frozen-abi", - "solana-runtime/frozen-abi", - "solana-sdk/frozen-abi", - "solana-short-vec/frozen-abi", - "solana-version/frozen-abi", - "solana-vote/frozen-abi", - "solana-vote-program/frozen-abi", -] - [[bench]] name = "crds" @@ -102,12 +109,5 @@ name = "crds_shards" name = "weighted_shuffle" harness = false -[[bin]] -name = "solana-gossip" -path = "src/main.rs" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - [lints] workspace = true diff --git a/inline-spl/Cargo.toml b/inline-spl/Cargo.toml index 132e10f07ab533..01244dd62e9c4a 100644 --- a/inline-spl/Cargo.toml +++ b/inline-spl/Cargo.toml @@ -9,17 +9,17 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_inline_spl" + [dependencies] bytemuck = { workspace = true } solana-pubkey = { workspace = true, default-features = false, features = [ "bytemuck", ] } -[lib] -crate-type = ["lib"] -name = "solana_inline_spl" - [dev-dependencies] - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/install/Cargo.toml b/install/Cargo.toml index 76cee4063e1bb7..b7966c1d7fbd7c 100644 --- a/install/Cargo.toml +++ b/install/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] atty = { workspace = true } bincode = { workspace = true } @@ -49,6 +52,3 @@ url = { workspace = true } [target."cfg(windows)".dependencies] winapi = { workspace = true, features = ["minwindef", "winuser"] } winreg = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/keygen/Cargo.toml b/keygen/Cargo.toml index dae1d439c4c8fd..b5cad5bb788e63 100644 --- a/keygen/Cargo.toml +++ b/keygen/Cargo.toml @@ -9,6 +9,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[[bin]] +name = "solana-keygen" +path = "src/keygen.rs" + [dependencies] bs58 = { workspace = true } clap = { version = "3.1.5", features = ["cargo"] } @@ -31,10 +38,3 @@ tiny-bip39 = { workspace = true } [dev-dependencies] solana-pubkey = { workspace = true, features = ["rand"] } tempfile = { workspace = true } - -[[bin]] -name = "solana-keygen" -path = "src/keygen.rs" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/ledger-tool/Cargo.toml b/ledger-tool/Cargo.toml index ff51716d67fa18..e7a3e11255c1ed 100644 --- a/ledger-tool/Cargo.toml +++ b/ledger-tool/Cargo.toml @@ -9,6 +9,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[features] +dev-context-only-utils = [] + [dependencies] agave-feature-set = { workspace = true } agave-reserved-account-keys = { workspace = true } @@ -65,15 +71,9 @@ tokio = { workspace = true, features = ["full"] } [target.'cfg(not(any(target_env = "msvc", target_os = "freebsd")))'.dependencies] jemallocator = { workspace = true } -[dev-dependencies] -assert_cmd = { workspace = true } -bytecount = { workspace = true } - -[features] -dev-context-only-utils = [] - [target."cfg(unix)".dependencies] signal-hook = { workspace = true } -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] +[dev-dependencies] +assert_cmd = { workspace = true } +bytecount = { workspace = true } diff --git a/ledger/Cargo.toml b/ledger/Cargo.toml index f8326fad5845f3..f223ab053276fd 100644 --- a/ledger/Cargo.toml +++ b/ledger/Cargo.toml @@ -9,6 +9,21 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_ledger" + +[features] +dev-context-only-utils = [] +frozen-abi = [ + "dep:solana-frozen-abi", + "dep:solana-frozen-abi-macro", + "solana-runtime/frozen-abi", +] + [dependencies] agave-feature-set = { workspace = true } agave-reserved-account-keys = { workspace = true } @@ -101,18 +116,6 @@ solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } spl-pod = { workspace = true } test-case = { workspace = true } -[features] -dev-context-only-utils = [] -frozen-abi = [ - "dep:solana-frozen-abi", - "dep:solana-frozen-abi-macro", - "solana-runtime/frozen-abi", -] - -[lib] -crate-type = ["lib"] -name = "solana_ledger" - [[bench]] name = "sigverify_shreds" @@ -123,8 +126,5 @@ name = "blockstore" name = "make_shreds_from_entries" harness = false -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - [lints] workspace = true diff --git a/local-cluster/Cargo.toml b/local-cluster/Cargo.toml index 82104121a2f80a..b24747aeeebad8 100644 --- a/local-cluster/Cargo.toml +++ b/local-cluster/Cargo.toml @@ -9,6 +9,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[features] +dev-context-only-utils = [] + [dependencies] crossbeam-channel = { workspace = true } itertools = { workspace = true } @@ -52,9 +58,3 @@ solana-download-utils = { workspace = true } solana-ledger = { workspace = true, features = ["dev-context-only-utils"] } solana-local-cluster = { path = ".", features = ["dev-context-only-utils"] } solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - -[features] -dev-context-only-utils = [] diff --git a/log-analyzer/Cargo.toml b/log-analyzer/Cargo.toml index c40cce53aea91f..27c95c9b7ed5ba 100644 --- a/log-analyzer/Cargo.toml +++ b/log-analyzer/Cargo.toml @@ -9,6 +9,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[[bin]] +name = "solana-log-analyzer" +path = "src/main.rs" + [dependencies] byte-unit = { workspace = true } clap = { version = "3.1.5", features = ["cargo"] } @@ -17,10 +24,3 @@ serde_derive = { workspace = true } serde_json = { workspace = true } solana-logger = "=2.3.1" solana-version = { workspace = true } - -[[bin]] -name = "solana-log-analyzer" -path = "src/main.rs" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/log-collector/Cargo.toml b/log-collector/Cargo.toml index e22c14c09f65e4..693d5fd6b4812f 100644 --- a/log-collector/Cargo.toml +++ b/log-collector/Cargo.toml @@ -9,8 +9,8 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -log = { workspace = true } - [package.metadata.docs.rs] targets = ["x86_64-unknown-linux-gnu"] + +[dependencies] +log = { workspace = true } diff --git a/merkle-root-bench/Cargo.toml b/merkle-root-bench/Cargo.toml index 1f2c1ea23da1b9..8d53c24228045e 100644 --- a/merkle-root-bench/Cargo.toml +++ b/merkle-root-bench/Cargo.toml @@ -8,6 +8,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] clap = { workspace = true } log = { workspace = true } @@ -16,6 +19,3 @@ solana-logger = { workspace = true } solana-measure = { workspace = true } solana-sdk = { workspace = true } solana-version = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/merkle-tree/Cargo.toml b/merkle-tree/Cargo.toml index cbd11a0e65797c..7993e255807e12 100644 --- a/merkle-tree/Cargo.toml +++ b/merkle-tree/Cargo.toml @@ -9,6 +9,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_merkle_tree" + [dependencies] fast-math = { workspace = true } solana-hash = { workspace = true } @@ -16,10 +23,3 @@ solana-sha256-hasher = { workspace = true } [dev-dependencies] hex = { workspace = true } - -[lib] -crate-type = ["lib"] -name = "solana_merkle_tree" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/metrics/Cargo.toml b/metrics/Cargo.toml index 5b91ed40886089..2a2dc0c1eb2921 100644 --- a/metrics/Cargo.toml +++ b/metrics/Cargo.toml @@ -9,6 +9,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +name = "solana_metrics" + [dependencies] crossbeam-channel = { workspace = true } gethostname = { workspace = true } @@ -26,11 +32,5 @@ env_logger = { workspace = true } rand = { workspace = true } serial_test = { workspace = true } -[lib] -name = "solana_metrics" - [[bench]] name = "metrics" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/net-shaper/Cargo.toml b/net-shaper/Cargo.toml index 33c4e303873462..ff047038c29beb 100644 --- a/net-shaper/Cargo.toml +++ b/net-shaper/Cargo.toml @@ -9,6 +9,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[[bin]] +name = "solana-net-shaper" +path = "src/main.rs" + [dependencies] clap = { version = "3.1.5", features = ["cargo"] } rand = { workspace = true } @@ -16,10 +23,3 @@ serde = { workspace = true } serde_derive = { workspace = true } serde_json = { workspace = true } solana-logger = "=2.3.1" - -[[bin]] -name = "solana-net-shaper" -path = "src/main.rs" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/net-utils/Cargo.toml b/net-utils/Cargo.toml index 283cd181164651..53dd1db60c07b5 100644 --- a/net-utils/Cargo.toml +++ b/net-utils/Cargo.toml @@ -9,6 +9,27 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +name = "solana_net_utils" + +[[bin]] +name = "solana-ip-address" +path = "src/bin/ip_address.rs" +required-features = ["clap"] + +[[bin]] +name = "solana-ip-address-server" +path = "src/bin/ip_address_server.rs" +required-features = ["clap"] + +[features] +default = [] +clap = ["dep:clap", "dep:solana-logger", "dep:solana-version"] +dev-context-only-utils = [] + [dependencies] anyhow = { workspace = true } bincode = { workspace = true } @@ -30,24 +51,3 @@ url = { workspace = true } [dev-dependencies] solana-logger = { workspace = true } - -[features] -default = [] -clap = ["dep:clap", "dep:solana-logger", "dep:solana-version"] -dev-context-only-utils = [] - -[lib] -name = "solana_net_utils" - -[[bin]] -name = "solana-ip-address" -path = "src/bin/ip_address.rs" -required-features = ["clap"] - -[[bin]] -name = "solana-ip-address-server" -path = "src/bin/ip_address_server.rs" -required-features = ["clap"] - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/notifier/Cargo.toml b/notifier/Cargo.toml index 270ba43d9c696c..ba5dcb2a74e3a4 100644 --- a/notifier/Cargo.toml +++ b/notifier/Cargo.toml @@ -9,14 +9,14 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +name = "solana_notifier" + [dependencies] log = { workspace = true } reqwest = { workspace = true, features = ["blocking", "brotli", "deflate", "gzip", "rustls-tls", "json"] } serde_json = { workspace = true } solana-hash = { workspace = true } - -[lib] -name = "solana_notifier" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/perf/Cargo.toml b/perf/Cargo.toml index bf41c12bb99507..591faa7765f967 100644 --- a/perf/Cargo.toml +++ b/perf/Cargo.toml @@ -9,6 +9,29 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +name = "solana_perf" + +[features] +dev-context-only-utils = [ + "dep:solana-clock", + "dep:solana-keypair", + "dep:solana-signer", + "dep:solana-system-interface", + "dep:solana-system-transaction", + "dep:solana-transaction", + "dep:solana-vote-program", +] +frozen-abi = [ + "dep:solana-frozen-abi", + "dep:solana-frozen-abi-macro", + "solana-short-vec/frozen-abi", + "solana-vote-program/frozen-abi", +] + [dependencies] ahash = { workspace = true } bincode = { workspace = true } @@ -50,9 +73,6 @@ caps = { workspace = true } libc = { workspace = true } nix = { workspace = true, features = ["user"] } -[lib] -name = "solana_perf" - [dev-dependencies] assert_matches = { workspace = true } rand_chacha = { workspace = true } @@ -60,32 +80,12 @@ solana-logger = { workspace = true } solana-perf = { path = ".", features = ["dev-context-only-utils"] } test-case = { workspace = true } -[features] -dev-context-only-utils = [ - "dep:solana-clock", - "dep:solana-keypair", - "dep:solana-signer", - "dep:solana-system-interface", - "dep:solana-system-transaction", - "dep:solana-transaction", - "dep:solana-vote-program", -] -frozen-abi = [ - "dep:solana-frozen-abi", - "dep:solana-frozen-abi-macro", - "solana-short-vec/frozen-abi", - "solana-vote-program/frozen-abi", -] - [[bench]] name = "sigverify" [[bench]] name = "discard" -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - [lints.rust.unexpected_cfgs] level = "warn" check-cfg = ['cfg(build_target_feature_avx)', 'cfg(build_target_feature_avx2)'] diff --git a/platform-tools-sdk/cargo-build-sbf/Cargo.toml b/platform-tools-sdk/cargo-build-sbf/Cargo.toml index 8c6ed2d2024bc7..e4b3c84bc8d9ec 100644 --- a/platform-tools-sdk/cargo-build-sbf/Cargo.toml +++ b/platform-tools-sdk/cargo-build-sbf/Cargo.toml @@ -9,6 +9,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[[bin]] +name = "cargo-build-sbf" +path = "src/main.rs" + +[features] +program = [] + [dependencies] bzip2 = { workspace = true } cargo_metadata = { workspace = true } @@ -27,10 +34,3 @@ tar = { workspace = true } assert_cmd = { workspace = true } predicates = { workspace = true } serial_test = { workspace = true } - -[features] -program = [] - -[[bin]] -name = "cargo-build-sbf" -path = "src/main.rs" diff --git a/platform-tools-sdk/cargo-test-sbf/Cargo.toml b/platform-tools-sdk/cargo-test-sbf/Cargo.toml index 80594997613f00..fa0fb2fe2cbc7c 100644 --- a/platform-tools-sdk/cargo-test-sbf/Cargo.toml +++ b/platform-tools-sdk/cargo-test-sbf/Cargo.toml @@ -9,6 +9,10 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[[bin]] +name = "cargo-test-sbf" +path = "src/main.rs" + [dependencies] cargo_metadata = { workspace = true } clap = { version = "3.1.5", features = ["cargo"] } @@ -16,7 +20,3 @@ itertools = { workspace = true } log = { workspace = true, features = ["std"] } regex = { workspace = true } solana-logger = "=2.3.1" - -[[bin]] -name = "cargo-test-sbf" -path = "src/main.rs" diff --git a/platform-tools-sdk/gen-headers/Cargo.toml b/platform-tools-sdk/gen-headers/Cargo.toml index 588bb11ee57c6d..35327f604fb828 100644 --- a/platform-tools-sdk/gen-headers/Cargo.toml +++ b/platform-tools-sdk/gen-headers/Cargo.toml @@ -8,10 +8,10 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -log = { workspace = true, features = ["std"] } -regex = { workspace = true } - [[bin]] name = "gen-headers" path = "src/main.rs" + +[dependencies] +log = { workspace = true, features = ["std"] } +regex = { workspace = true } diff --git a/poh-bench/Cargo.toml b/poh-bench/Cargo.toml index 8cd3979b17c79b..c71529cee7b30b 100644 --- a/poh-bench/Cargo.toml +++ b/poh-bench/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] clap = { version = "3.1.5", features = ["cargo"] } log = { workspace = true } @@ -20,6 +23,3 @@ solana-perf = { workspace = true } solana-rayon-threadlimit = { workspace = true } solana-sdk = { workspace = true } solana-version = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/poh/Cargo.toml b/poh/Cargo.toml index 3b37ead60c6c4f..e523d9dd091e43 100644 --- a/poh/Cargo.toml +++ b/poh/Cargo.toml @@ -9,6 +9,16 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_poh" + +[features] +dev-context-only-utils = [] + [dependencies] core_affinity = { workspace = true } crossbeam-channel = { workspace = true } @@ -39,15 +49,5 @@ solana-sha256-hasher = { workspace = true } solana-signer = { workspace = true } solana-system-transaction = { workspace = true } -[features] -dev-context-only-utils = [] - -[lib] -crate-type = ["lib"] -name = "solana_poh" - [[bench]] name = "poh" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/poseidon/Cargo.toml b/poseidon/Cargo.toml index 021bf76716d03a..7b41042855b9ec 100644 --- a/poseidon/Cargo.toml +++ b/poseidon/Cargo.toml @@ -9,18 +9,18 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] thiserror = { workspace = true } -[target.'cfg(target_os = "solana")'.dependencies] -solana-define-syscall = { workspace = true } - [target.'cfg(not(target_os = "solana"))'.dependencies] ark-bn254 = { workspace = true } light-poseidon = { workspace = true } -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] +[target.'cfg(target_os = "solana")'.dependencies] +solana-define-syscall = { workspace = true } [lints] workspace = true diff --git a/precompiles/Cargo.toml b/precompiles/Cargo.toml index ff4b7a806117a9..5fef142b312941 100644 --- a/precompiles/Cargo.toml +++ b/precompiles/Cargo.toml @@ -9,6 +9,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] +all-features = true +rustdoc-args = ["--cfg=docsrs"] + [dependencies] agave-feature-set = { workspace = true } bincode = { workspace = true } @@ -35,10 +40,5 @@ solana-keccak-hasher = { workspace = true } solana-logger = { workspace = true } solana-secp256k1-program = { workspace = true, features = ["bincode"] } -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] -all-features = true -rustdoc-args = ["--cfg=docsrs"] - [lints] workspace = true diff --git a/program-runtime/Cargo.toml b/program-runtime/Cargo.toml index 5065f23f406987..c7d46facbc9254 100644 --- a/program-runtime/Cargo.toml +++ b/program-runtime/Cargo.toml @@ -9,6 +9,23 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_program_runtime" + +[features] +dummy-for-ci-check = ["metrics"] +frozen-abi = [ + "dep:solana-frozen-abi", + "dep:solana-frozen-abi-macro", + "solana-compute-budget/frozen-abi", +] +metrics = ["dep:solana-metrics"] +shuttle-test = ["solana-type-overrides/shuttle-test", "solana-sbpf/shuttle-test"] + [dependencies] agave-feature-set = { workspace = true } agave-precompiles = { workspace = true } @@ -60,25 +77,5 @@ solana-transaction-context = { workspace = true, features = [ ] } test-case = { workspace = true } -[lib] -crate-type = ["lib"] -name = "solana_program_runtime" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - -[features] -dummy-for-ci-check = ["metrics"] -frozen-abi = [ - "dep:solana-frozen-abi", - "dep:solana-frozen-abi-macro", - "solana-compute-budget/frozen-abi", -] -metrics = ["dep:solana-metrics"] -shuttle-test = [ - "solana-type-overrides/shuttle-test", - "solana-sbpf/shuttle-test", -] - [lints] workspace = true diff --git a/programs/address-lookup-table-tests/Cargo.toml b/programs/address-lookup-table-tests/Cargo.toml index ca83276b4fdda8..4934825d0ca3b2 100644 --- a/programs/address-lookup-table-tests/Cargo.toml +++ b/programs/address-lookup-table-tests/Cargo.toml @@ -11,6 +11,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dev-dependencies] agave-feature-set = { workspace = true } assert_matches = { workspace = true } @@ -29,6 +32,3 @@ solana-system-program = { workspace = true } [[bench]] name = "address_lookup_table" harness = false - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/programs/address-lookup-table/Cargo.toml b/programs/address-lookup-table/Cargo.toml index 68eec3382c9086..09764b3ff28eb4 100644 --- a/programs/address-lookup-table/Cargo.toml +++ b/programs/address-lookup-table/Cargo.toml @@ -9,6 +9,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_address_lookup_table_program" + [dependencies] agave-feature-set = { workspace = true } bincode = { workspace = true } @@ -33,12 +40,5 @@ solana-pubkey = { workspace = true } solana-system-interface = { workspace = true, features = ["bincode"] } solana-transaction-context = { workspace = true, features = ["bincode"] } -[lib] -crate-type = ["lib"] -name = "solana_address_lookup_table_program" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - [lints] workspace = true diff --git a/programs/bpf-loader-tests/Cargo.toml b/programs/bpf-loader-tests/Cargo.toml index 497d50d3b13a7c..20182fcc32d6e1 100644 --- a/programs/bpf-loader-tests/Cargo.toml +++ b/programs/bpf-loader-tests/Cargo.toml @@ -11,6 +11,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dev-dependencies] assert_matches = { workspace = true } bincode = { workspace = true } @@ -18,6 +21,3 @@ solana-bpf-loader-program = { workspace = true } solana-loader-v3-interface = { workspace = true, features = ["bincode"] } solana-program-test = { workspace = true } solana-sdk = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/programs/bpf_loader/Cargo.toml b/programs/bpf_loader/Cargo.toml index 7808224974f0f9..f4e59f85488474 100644 --- a/programs/bpf_loader/Cargo.toml +++ b/programs/bpf_loader/Cargo.toml @@ -9,6 +9,23 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_bpf_loader_program" + +[features] +default = ["metrics"] +metrics = ["solana-program-runtime/metrics"] +shuttle-test = [ + "solana-type-overrides/shuttle-test", + "solana-program-runtime/shuttle-test", + "solana-sbpf/shuttle-test", +] +svm-internal = [] + [dependencies] agave-feature-set = { workspace = true } agave-precompiles = { workspace = true } @@ -69,10 +86,6 @@ solana-transaction-context = { workspace = true, features = ["dev-context-only-u static_assertions = { workspace = true } test-case = { workspace = true } -[lib] -crate-type = ["lib"] -name = "solana_bpf_loader_program" - [[bench]] name = "serialization" harness = false @@ -80,16 +93,3 @@ harness = false [[bench]] name = "bpf_loader_upgradeable" harness = false - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - -[features] -default = ["metrics"] -metrics = ["solana-program-runtime/metrics"] -shuttle-test = [ - "solana-type-overrides/shuttle-test", - "solana-program-runtime/shuttle-test", - "solana-sbpf/shuttle-test" -] -svm-internal = [] diff --git a/programs/compute-budget-bench/Cargo.toml b/programs/compute-budget-bench/Cargo.toml index 49232a5627944a..e072e16e8306a6 100644 --- a/programs/compute-budget-bench/Cargo.toml +++ b/programs/compute-budget-bench/Cargo.toml @@ -8,6 +8,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] agave-feature-set = { workspace = true } criterion = { workspace = true } @@ -22,6 +25,3 @@ solana-svm-transaction = { workspace = true } [[bench]] name = "compute_budget" harness = false - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/programs/compute-budget/Cargo.toml b/programs/compute-budget/Cargo.toml index a52f98b4506449..15bd1e91e8977f 100644 --- a/programs/compute-budget/Cargo.toml +++ b/programs/compute-budget/Cargo.toml @@ -9,9 +9,8 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -qualifier_attr = { workspace = true } -solana-program-runtime = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] [lib] crate-type = ["lib"] @@ -20,5 +19,6 @@ name = "solana_compute_budget_program" [features] svm-internal = [] -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] +[dependencies] +qualifier_attr = { workspace = true } +solana-program-runtime = { workspace = true } diff --git a/programs/config/Cargo.toml b/programs/config/Cargo.toml index bb3fc16c26476b..22a42766805827 100644 --- a/programs/config/Cargo.toml +++ b/programs/config/Cargo.toml @@ -9,6 +9,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_config_program" + [dependencies] bincode = { workspace = true } chrono = { workspace = true, features = ["default", "serde"] } @@ -31,10 +38,3 @@ solana-transaction-context = { workspace = true } solana-keypair = { workspace = true } solana-logger = { workspace = true } solana-signer = { workspace = true } - -[lib] -crate-type = ["lib"] -name = "solana_config_program" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/programs/ed25519-tests/Cargo.toml b/programs/ed25519-tests/Cargo.toml index 6ec6dfb3e814e1..a98ecf35860abe 100644 --- a/programs/ed25519-tests/Cargo.toml +++ b/programs/ed25519-tests/Cargo.toml @@ -8,6 +8,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dev-dependencies] agave-feature-set = { workspace = true } assert_matches = { workspace = true } @@ -15,6 +18,3 @@ ed25519-dalek = { workspace = true } rand = { workspace = true } solana-program-test = { workspace = true } solana-sdk = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/programs/loader-v4/Cargo.toml b/programs/loader-v4/Cargo.toml index 1b5675eab346e9..c6d34133ff5412 100644 --- a/programs/loader-v4/Cargo.toml +++ b/programs/loader-v4/Cargo.toml @@ -8,6 +8,21 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_loader_v4_program" + +[features] +shuttle-test = [ + "solana-type-overrides/shuttle-test", + "solana-program-runtime/shuttle-test", + "solana-sbpf/shuttle-test", +] +svm-internal = [] + [dependencies] log = { workspace = true } qualifier_attr = { workspace = true } @@ -32,18 +47,3 @@ solana-type-overrides = { workspace = true } bincode = { workspace = true } solana-clock = { workspace = true } solana-sysvar = { workspace = true } - -[lib] -crate-type = ["lib"] -name = "solana_loader_v4_program" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - -[features] -shuttle-test = [ - "solana-type-overrides/shuttle-test", - "solana-program-runtime/shuttle-test", - "solana-sbpf/shuttle-test" -] -svm-internal = [] diff --git a/programs/sbf/Cargo.toml b/programs/sbf/Cargo.toml index 1a5d867d67ab10..1b60ab710743e2 100644 --- a/programs/sbf/Cargo.toml +++ b/programs/sbf/Cargo.toml @@ -1,3 +1,77 @@ + +[package] +name = "solana-sbf-programs" +description = "Blockchain, Rebuilt for Scale" +documentation = "https://docs.rs/solana" +readme = "README.md" +publish = false +version = { workspace = true } +authors = { workspace = true } +repository = { workspace = true } +homepage = { workspace = true } +license = { workspace = true } +edition = { workspace = true } + +[workspace] +members = [ + "rust/128bit", + "rust/128bit_dep", + "rust/account_mem", + "rust/account_mem_deprecated", + "rust/alloc", + "rust/alt_bn128", + "rust/alt_bn128_compression", + "rust/big_mod_exp", + "rust/call_args", + "rust/call_depth", + "rust/caller_access", + "rust/curve25519", + "rust/custom_heap", + "rust/dep_crate", + "rust/deprecated_loader", + "rust/divide_by_zero", + "rust/dup_accounts", + "rust/error_handling", + "rust/external_spend", + "rust/get_minimum_delegation", + "rust/inner_instruction_alignment_check", + "rust/instruction_introspection", + "rust/invoke", + "rust/invoke_and_error", + "rust/invoke_and_ok", + "rust/invoke_and_return", + "rust/invoked", + "rust/iter", + "rust/log_data", + "rust/many_args", + "rust/many_args_dep", + "rust/mem", + "rust/mem_dep", + "rust/membuiltins", + "rust/noop", + "rust/panic", + "rust/param_passing", + "rust/param_passing_dep", + "rust/poseidon", + "rust/rand", + "rust/realloc", + "rust/realloc_invoke", + "rust/remaining_compute_units", + "rust/ro_account_modify", + "rust/ro_modify", + "rust/sanity", + "rust/secp256k1_recover", + "rust/sha", + "rust/sibling_inner_instructions", + "rust/sibling_instructions", + "rust/simulation", + "rust/spoof1", + "rust/spoof1_system", + "rust/syscall-get-epoch-stake", + "rust/sysvar", + "rust/upgradeable", + "rust/upgraded", +] [workspace.package] version = "2.2.17" description = "Solana SBF test program written in Rust" @@ -11,12 +85,13 @@ edition = "2021" level = "warn" check-cfg = [ 'cfg(target_os, values("solana"))', - 'cfg(feature, values("custom-panic", "custom-heap"))' + 'cfg(feature, values("custom-panic", "custom-heap"))', ] [workspace.dependencies] agave-feature-set = { path = "../../feature-set", version = "=2.2.17" } agave-reserved-account-keys = { path = "../../reserved-account-keys", version = "=2.2.17" } +agave-validator = { path = "../../validator", version = "=2.2.17" } array-bytes = "=1.4.1" bincode = { version = "1.1.4", default-features = false } blake3 = "1.0.0" @@ -62,8 +137,8 @@ solana-sbf-rust-mem-dep = { path = "rust/mem_dep", version = "=2.2.17" } solana-sbf-rust-param-passing-dep = { path = "rust/param_passing_dep", version = "=2.2.17" } solana-sbf-rust-realloc-dep = { path = "rust/realloc_dep", version = "=2.2.17" } solana-sbf-rust-realloc-invoke-dep = { path = "rust/realloc_invoke_dep", version = "=2.2.17" } -solana-sdk = "=2.2.2" solana-sbpf = "=0.10.1" +solana-sdk = "=2.2.2" solana-secp256k1-recover = "=2.2.1" solana-svm = { path = "../../svm", version = "=2.2.17" } solana-svm-transaction = { path = "../../svm-transaction", version = "=2.2.17" } @@ -73,28 +148,9 @@ solana-transaction-status = { path = "../../transaction-status", version = "=2.2 solana-type-overrides = { path = "../../type-overrides", version = "=2.2.17" } solana-vote = { path = "../../vote", version = "=2.2.17" } solana-vote-program = { path = "../../programs/vote", version = "=2.2.17" } -agave-validator = { path = "../../validator", version = "=2.2.17" } solana-zk-sdk = "=2.2.1" thiserror = "1.0" -[package] -name = "solana-sbf-programs" -description = "Blockchain, Rebuilt for Scale" -documentation = "https://docs.rs/solana" -readme = "README.md" -publish = false -version = { workspace = true } -authors = { workspace = true } -repository = { workspace = true } -homepage = { workspace = true } -license = { workspace = true } -edition = { workspace = true } - -[profile.release] -# The test programs are build in release mode -# Minimize their file size so that they fit into the account size limit -strip = true - [features] sbf_c = [] sbf_rust = [] @@ -149,70 +205,14 @@ solana-type-overrides = { workspace = true } solana-vote = { workspace = true } solana-vote-program = { workspace = true } +[profile.release] +# The test programs are build in release mode +# Minimize their file size so that they fit into the account size limit +strip = true + [[bench]] name = "bpf_loader" -[workspace] -members = [ - "rust/128bit", - "rust/128bit_dep", - "rust/account_mem", - "rust/account_mem_deprecated", - "rust/alloc", - "rust/alt_bn128", - "rust/alt_bn128_compression", - "rust/big_mod_exp", - "rust/call_args", - "rust/call_depth", - "rust/caller_access", - "rust/curve25519", - "rust/custom_heap", - "rust/dep_crate", - "rust/deprecated_loader", - "rust/divide_by_zero", - "rust/dup_accounts", - "rust/error_handling", - "rust/external_spend", - "rust/get_minimum_delegation", - "rust/inner_instruction_alignment_check", - "rust/instruction_introspection", - "rust/invoke", - "rust/invoke_and_error", - "rust/invoke_and_ok", - "rust/invoke_and_return", - "rust/invoked", - "rust/iter", - "rust/log_data", - "rust/many_args", - "rust/many_args_dep", - "rust/mem", - "rust/mem_dep", - "rust/membuiltins", - "rust/noop", - "rust/panic", - "rust/param_passing", - "rust/param_passing_dep", - "rust/poseidon", - "rust/rand", - "rust/realloc", - "rust/realloc_invoke", - "rust/remaining_compute_units", - "rust/ro_account_modify", - "rust/ro_modify", - "rust/sanity", - "rust/secp256k1_recover", - "rust/sha", - "rust/sibling_inner_instructions", - "rust/sibling_instructions", - "rust/simulation", - "rust/spoof1", - "rust/spoof1_system", - "rust/syscall-get-epoch-stake", - "rust/sysvar", - "rust/upgradeable", - "rust/upgraded", -] - [patch.crates-io] # We include the following crates as our dependencies from crates.io: # diff --git a/programs/sbf/rust/128bit/Cargo.toml b/programs/sbf/rust/128bit/Cargo.toml index c9b401344ae4d1..1eff9066dd7e0f 100644 --- a/programs/sbf/rust/128bit/Cargo.toml +++ b/programs/sbf/rust/128bit/Cargo.toml @@ -8,12 +8,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + [dependencies] solana-program = { workspace = true } solana-sbf-rust-128bit-dep = { workspace = true } -[lib] -crate-type = ["cdylib"] - [lints] workspace = true diff --git a/programs/sbf/rust/account_mem/Cargo.toml b/programs/sbf/rust/account_mem/Cargo.toml index 39f72a5ff71d66..30f2f5533187ad 100644 --- a/programs/sbf/rust/account_mem/Cargo.toml +++ b/programs/sbf/rust/account_mem/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/account_mem_deprecated/Cargo.toml b/programs/sbf/rust/account_mem_deprecated/Cargo.toml index 4ca338cde26e2f..2269b08303c9fb 100644 --- a/programs/sbf/rust/account_mem_deprecated/Cargo.toml +++ b/programs/sbf/rust/account_mem_deprecated/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/alloc/Cargo.toml b/programs/sbf/rust/alloc/Cargo.toml index cddf373c236cea..27f6f99f5dd586 100644 --- a/programs/sbf/rust/alloc/Cargo.toml +++ b/programs/sbf/rust/alloc/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/alt_bn128/Cargo.toml b/programs/sbf/rust/alt_bn128/Cargo.toml index f283ce759342bf..8bfb83ca003fcc 100644 --- a/programs/sbf/rust/alt_bn128/Cargo.toml +++ b/programs/sbf/rust/alt_bn128/Cargo.toml @@ -8,13 +8,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + [dependencies] array-bytes = { workspace = true } solana-bn254 = { workspace = true } solana-program = { workspace = true } -[lib] -crate-type = ["cdylib"] - [lints] workspace = true diff --git a/programs/sbf/rust/alt_bn128_compression/Cargo.toml b/programs/sbf/rust/alt_bn128_compression/Cargo.toml index 7f52a923a1f53d..ff404214e272b4 100644 --- a/programs/sbf/rust/alt_bn128_compression/Cargo.toml +++ b/programs/sbf/rust/alt_bn128_compression/Cargo.toml @@ -8,13 +8,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + [dependencies] array-bytes = { workspace = true } solana-bn254 = { workspace = true } solana-program = { workspace = true } -[lib] -crate-type = ["cdylib"] - [lints] workspace = true diff --git a/programs/sbf/rust/big_mod_exp/Cargo.toml b/programs/sbf/rust/big_mod_exp/Cargo.toml index a0567b3b7b18e2..ec3a4f2721ff64 100644 --- a/programs/sbf/rust/big_mod_exp/Cargo.toml +++ b/programs/sbf/rust/big_mod_exp/Cargo.toml @@ -8,6 +8,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + [dependencies] array-bytes = { workspace = true } serde = { workspace = true } @@ -15,8 +18,5 @@ serde_derive = { workspace = true } serde_json = { workspace = true } solana-program = { workspace = true } -[lib] -crate-type = ["cdylib"] - [lints] workspace = true diff --git a/programs/sbf/rust/call_args/Cargo.toml b/programs/sbf/rust/call_args/Cargo.toml index 2d4a4ecd84db9d..039dd2e2bfc1b4 100644 --- a/programs/sbf/rust/call_args/Cargo.toml +++ b/programs/sbf/rust/call_args/Cargo.toml @@ -8,12 +8,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + [dependencies] borsh = { workspace = true } solana-program = { workspace = true } -[lib] -crate-type = ["cdylib"] - [lints] workspace = true diff --git a/programs/sbf/rust/call_depth/Cargo.toml b/programs/sbf/rust/call_depth/Cargo.toml index 5d2f503234c026..9b9855ee51b396 100644 --- a/programs/sbf/rust/call_depth/Cargo.toml +++ b/programs/sbf/rust/call_depth/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/caller_access/Cargo.toml b/programs/sbf/rust/caller_access/Cargo.toml index e0b717927e5d7f..41fd345c96a606 100644 --- a/programs/sbf/rust/caller_access/Cargo.toml +++ b/programs/sbf/rust/caller_access/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/curve25519/Cargo.toml b/programs/sbf/rust/curve25519/Cargo.toml index 936f30a645fa90..3d1b17fa64c367 100644 --- a/programs/sbf/rust/curve25519/Cargo.toml +++ b/programs/sbf/rust/curve25519/Cargo.toml @@ -8,12 +8,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + [dependencies] solana-curve25519 = { workspace = true } solana-program = { workspace = true } -[lib] -crate-type = ["cdylib"] - [lints] workspace = true diff --git a/programs/sbf/rust/custom_heap/Cargo.toml b/programs/sbf/rust/custom_heap/Cargo.toml index 3386d32547b31f..32dcdf8d07af8e 100644 --- a/programs/sbf/rust/custom_heap/Cargo.toml +++ b/programs/sbf/rust/custom_heap/Cargo.toml @@ -8,15 +8,15 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } +[lib] +crate-type = ["cdylib"] [features] default = ["custom-heap"] custom-heap = [] -[lib] -crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } [lints] workspace = true diff --git a/programs/sbf/rust/dep_crate/Cargo.toml b/programs/sbf/rust/dep_crate/Cargo.toml index f583014cbac633..e57f7a63b84cc1 100644 --- a/programs/sbf/rust/dep_crate/Cargo.toml +++ b/programs/sbf/rust/dep_crate/Cargo.toml @@ -8,9 +8,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + [dependencies] byteorder = { workspace = true } solana-program = { workspace = true } - -[lib] -crate-type = ["cdylib"] diff --git a/programs/sbf/rust/deprecated_loader/Cargo.toml b/programs/sbf/rust/deprecated_loader/Cargo.toml index 8a139ba3912199..2d5c6c993a64b8 100644 --- a/programs/sbf/rust/deprecated_loader/Cargo.toml +++ b/programs/sbf/rust/deprecated_loader/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/divide_by_zero/Cargo.toml b/programs/sbf/rust/divide_by_zero/Cargo.toml index eb4bf4e9f93f29..c8204a9577dc44 100644 --- a/programs/sbf/rust/divide_by_zero/Cargo.toml +++ b/programs/sbf/rust/divide_by_zero/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/dup_accounts/Cargo.toml b/programs/sbf/rust/dup_accounts/Cargo.toml index 03c1c57264afcc..26361cb62d8e61 100644 --- a/programs/sbf/rust/dup_accounts/Cargo.toml +++ b/programs/sbf/rust/dup_accounts/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/error_handling/Cargo.toml b/programs/sbf/rust/error_handling/Cargo.toml index f07ca571dbe37d..9881e63d5ba15f 100644 --- a/programs/sbf/rust/error_handling/Cargo.toml +++ b/programs/sbf/rust/error_handling/Cargo.toml @@ -8,6 +8,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + [dependencies] num-derive = { workspace = true } num-traits = { workspace = true } @@ -15,8 +18,5 @@ solana-decode-error = { workspace = true } solana-program = { workspace = true } thiserror = { workspace = true } -[lib] -crate-type = ["cdylib"] - [lints] workspace = true diff --git a/programs/sbf/rust/external_spend/Cargo.toml b/programs/sbf/rust/external_spend/Cargo.toml index 37401ff9e4b6ff..54bef28b70caf3 100644 --- a/programs/sbf/rust/external_spend/Cargo.toml +++ b/programs/sbf/rust/external_spend/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/get_minimum_delegation/Cargo.toml b/programs/sbf/rust/get_minimum_delegation/Cargo.toml index 3856d2294283f9..e1918756bc567b 100644 --- a/programs/sbf/rust/get_minimum_delegation/Cargo.toml +++ b/programs/sbf/rust/get_minimum_delegation/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/inner_instruction_alignment_check/Cargo.toml b/programs/sbf/rust/inner_instruction_alignment_check/Cargo.toml index 724f5503bb358f..2d67db6eb97f06 100644 --- a/programs/sbf/rust/inner_instruction_alignment_check/Cargo.toml +++ b/programs/sbf/rust/inner_instruction_alignment_check/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/instruction_introspection/Cargo.toml b/programs/sbf/rust/instruction_introspection/Cargo.toml index 42c87a6acc3326..3220acf9444b5c 100644 --- a/programs/sbf/rust/instruction_introspection/Cargo.toml +++ b/programs/sbf/rust/instruction_introspection/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/invoke/Cargo.toml b/programs/sbf/rust/invoke/Cargo.toml index e39e49b68dd400..0aab894ceaac9e 100644 --- a/programs/sbf/rust/invoke/Cargo.toml +++ b/programs/sbf/rust/invoke/Cargo.toml @@ -8,17 +8,17 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + +[features] +dynamic-frames = [] + [dependencies] solana-program = { workspace = true } solana-sbf-rust-invoke-dep = { workspace = true } solana-sbf-rust-invoked-dep = { workspace = true } solana-sbf-rust-realloc-dep = { workspace = true } -[lib] -crate-type = ["cdylib"] - [lints] workspace = true - -[features] -dynamic-frames = [] diff --git a/programs/sbf/rust/invoke_and_error/Cargo.toml b/programs/sbf/rust/invoke_and_error/Cargo.toml index 6427bc82629bbd..378938acb136d0 100644 --- a/programs/sbf/rust/invoke_and_error/Cargo.toml +++ b/programs/sbf/rust/invoke_and_error/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/invoke_and_ok/Cargo.toml b/programs/sbf/rust/invoke_and_ok/Cargo.toml index 9fbdda726c55b9..33d693335f44a3 100644 --- a/programs/sbf/rust/invoke_and_ok/Cargo.toml +++ b/programs/sbf/rust/invoke_and_ok/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/invoke_and_return/Cargo.toml b/programs/sbf/rust/invoke_and_return/Cargo.toml index b7cc9c5d7d00ea..4ce7bbe5e531c6 100644 --- a/programs/sbf/rust/invoke_and_return/Cargo.toml +++ b/programs/sbf/rust/invoke_and_return/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/invoked/Cargo.toml b/programs/sbf/rust/invoked/Cargo.toml index dcb0078d05e20e..9324440bbb3c69 100644 --- a/programs/sbf/rust/invoked/Cargo.toml +++ b/programs/sbf/rust/invoked/Cargo.toml @@ -8,12 +8,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + [dependencies] solana-program = { workspace = true } solana-sbf-rust-invoked-dep = { workspace = true } -[lib] -crate-type = ["cdylib"] - [lints] workspace = true diff --git a/programs/sbf/rust/iter/Cargo.toml b/programs/sbf/rust/iter/Cargo.toml index f859f4fb44fd00..5c13ad98d4793e 100644 --- a/programs/sbf/rust/iter/Cargo.toml +++ b/programs/sbf/rust/iter/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/log_data/Cargo.toml b/programs/sbf/rust/log_data/Cargo.toml index fc9a6ced55d488..1da0cc409872ad 100644 --- a/programs/sbf/rust/log_data/Cargo.toml +++ b/programs/sbf/rust/log_data/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/many_args/Cargo.toml b/programs/sbf/rust/many_args/Cargo.toml index 2ec3671be62d38..85aa7eab6c3693 100644 --- a/programs/sbf/rust/many_args/Cargo.toml +++ b/programs/sbf/rust/many_args/Cargo.toml @@ -8,12 +8,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + [dependencies] solana-program = { workspace = true } solana-sbf-rust-many-args-dep = { workspace = true } -[lib] -crate-type = ["cdylib"] - [lints] workspace = true diff --git a/programs/sbf/rust/mem/Cargo.toml b/programs/sbf/rust/mem/Cargo.toml index ed5668bbdc6c6f..f8be3d06174a21 100644 --- a/programs/sbf/rust/mem/Cargo.toml +++ b/programs/sbf/rust/mem/Cargo.toml @@ -8,12 +8,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + [dependencies] solana-program = { workspace = true } solana-sbf-rust-mem-dep = { workspace = true } -[lib] -crate-type = ["cdylib"] - [lints] workspace = true diff --git a/programs/sbf/rust/mem_dep/Cargo.toml b/programs/sbf/rust/mem_dep/Cargo.toml index def7109a05317a..1e54b7bd9b89fc 100644 --- a/programs/sbf/rust/mem_dep/Cargo.toml +++ b/programs/sbf/rust/mem_dep/Cargo.toml @@ -8,8 +8,8 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["lib"] + +[dependencies] +solana-program = { workspace = true } diff --git a/programs/sbf/rust/membuiltins/Cargo.toml b/programs/sbf/rust/membuiltins/Cargo.toml index 405feffd4effb9..bb1e8d1d421ec3 100644 --- a/programs/sbf/rust/membuiltins/Cargo.toml +++ b/programs/sbf/rust/membuiltins/Cargo.toml @@ -8,12 +8,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + [dependencies] solana-program = { workspace = true } solana-sbf-rust-mem-dep = { workspace = true } -[lib] -crate-type = ["cdylib"] - [lints] workspace = true diff --git a/programs/sbf/rust/noop/Cargo.toml b/programs/sbf/rust/noop/Cargo.toml index f2cdff7f18e5f8..27d9ea85f0b965 100644 --- a/programs/sbf/rust/noop/Cargo.toml +++ b/programs/sbf/rust/noop/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/panic/Cargo.toml b/programs/sbf/rust/panic/Cargo.toml index 46f99056ac901e..eb35536d65a5d1 100644 --- a/programs/sbf/rust/panic/Cargo.toml +++ b/programs/sbf/rust/panic/Cargo.toml @@ -8,15 +8,15 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } +[lib] +crate-type = ["cdylib"] [features] default = ["custom-panic"] custom-panic = [] -[lib] -crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } [lints] workspace = true diff --git a/programs/sbf/rust/param_passing/Cargo.toml b/programs/sbf/rust/param_passing/Cargo.toml index 43bb48c4fcdee0..96dd108796cd54 100644 --- a/programs/sbf/rust/param_passing/Cargo.toml +++ b/programs/sbf/rust/param_passing/Cargo.toml @@ -8,12 +8,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + [dependencies] solana-program = { workspace = true } solana-sbf-rust-param-passing-dep = { workspace = true } -[lib] -crate-type = ["cdylib"] - [lints] workspace = true diff --git a/programs/sbf/rust/poseidon/Cargo.toml b/programs/sbf/rust/poseidon/Cargo.toml index 4c70ea83242e44..6992f8261d4c68 100644 --- a/programs/sbf/rust/poseidon/Cargo.toml +++ b/programs/sbf/rust/poseidon/Cargo.toml @@ -8,13 +8,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + [dependencies] array-bytes = { workspace = true } solana-poseidon = { workspace = true } solana-program = { workspace = true } -[lib] -crate-type = ["cdylib"] - [lints] workspace = true diff --git a/programs/sbf/rust/rand/Cargo.toml b/programs/sbf/rust/rand/Cargo.toml index 4a8087f8229c56..61983d8b6dd17b 100644 --- a/programs/sbf/rust/rand/Cargo.toml +++ b/programs/sbf/rust/rand/Cargo.toml @@ -8,13 +8,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + [dependencies] getrandom = { workspace = true, features = ["custom"] } rand = { workspace = true } solana-program = { workspace = true } -[lib] -crate-type = ["cdylib"] - [lints] workspace = true diff --git a/programs/sbf/rust/realloc/Cargo.toml b/programs/sbf/rust/realloc/Cargo.toml index 8d61550795393b..77cfffb5e06192 100644 --- a/programs/sbf/rust/realloc/Cargo.toml +++ b/programs/sbf/rust/realloc/Cargo.toml @@ -8,12 +8,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + [dependencies] solana-program = { workspace = true } solana-sbf-rust-realloc-dep = { workspace = true } -[lib] -crate-type = ["cdylib"] - [lints] workspace = true diff --git a/programs/sbf/rust/realloc_invoke/Cargo.toml b/programs/sbf/rust/realloc_invoke/Cargo.toml index 010fd1550f66ea..5d737fd1696a14 100644 --- a/programs/sbf/rust/realloc_invoke/Cargo.toml +++ b/programs/sbf/rust/realloc_invoke/Cargo.toml @@ -8,13 +8,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + [dependencies] solana-program = { workspace = true } solana-sbf-rust-realloc-dep = { workspace = true } solana-sbf-rust-realloc-invoke-dep = { workspace = true } -[lib] -crate-type = ["cdylib"] - [lints] workspace = true diff --git a/programs/sbf/rust/remaining_compute_units/Cargo.toml b/programs/sbf/rust/remaining_compute_units/Cargo.toml index 3dceb27455ee23..96f1756f56ef3d 100644 --- a/programs/sbf/rust/remaining_compute_units/Cargo.toml +++ b/programs/sbf/rust/remaining_compute_units/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/ro_account_modify/Cargo.toml b/programs/sbf/rust/ro_account_modify/Cargo.toml index c9f6b94e4ece4b..f18c4c6235897d 100644 --- a/programs/sbf/rust/ro_account_modify/Cargo.toml +++ b/programs/sbf/rust/ro_account_modify/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/ro_modify/Cargo.toml b/programs/sbf/rust/ro_modify/Cargo.toml index 566734108df255..3a48cbc2fe6f3f 100644 --- a/programs/sbf/rust/ro_modify/Cargo.toml +++ b/programs/sbf/rust/ro_modify/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/sanity/Cargo.toml b/programs/sbf/rust/sanity/Cargo.toml index d5c47f9deb46b2..3a4ab872d8468d 100644 --- a/programs/sbf/rust/sanity/Cargo.toml +++ b/programs/sbf/rust/sanity/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/secp256k1_recover/Cargo.toml b/programs/sbf/rust/secp256k1_recover/Cargo.toml index 357bf03e14e591..a65067b721b86f 100644 --- a/programs/sbf/rust/secp256k1_recover/Cargo.toml +++ b/programs/sbf/rust/secp256k1_recover/Cargo.toml @@ -8,13 +8,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + [dependencies] libsecp256k1 = { workspace = true } solana-program = { workspace = true } solana-secp256k1-recover = { workspace = true } -[lib] -crate-type = ["cdylib"] - [lints] workspace = true diff --git a/programs/sbf/rust/sha/Cargo.toml b/programs/sbf/rust/sha/Cargo.toml index d5f13a040537b9..09da14a13aef55 100644 --- a/programs/sbf/rust/sha/Cargo.toml +++ b/programs/sbf/rust/sha/Cargo.toml @@ -8,12 +8,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib"] + [dependencies] blake3 = { workspace = true } solana-program = { workspace = true } -[lib] -crate-type = ["cdylib"] - [lints] workspace = true diff --git a/programs/sbf/rust/sibling_inner_instructions/Cargo.toml b/programs/sbf/rust/sibling_inner_instructions/Cargo.toml index f77323954bbfd8..5d4366478a9b4c 100644 --- a/programs/sbf/rust/sibling_inner_instructions/Cargo.toml +++ b/programs/sbf/rust/sibling_inner_instructions/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/sibling_instructions/Cargo.toml b/programs/sbf/rust/sibling_instructions/Cargo.toml index a23ab923f7b5c8..b0b910fa09f87f 100644 --- a/programs/sbf/rust/sibling_instructions/Cargo.toml +++ b/programs/sbf/rust/sibling_instructions/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/simulation/Cargo.toml b/programs/sbf/rust/simulation/Cargo.toml index 7928cc7df43cce..2857a93c44a58c 100644 --- a/programs/sbf/rust/simulation/Cargo.toml +++ b/programs/sbf/rust/simulation/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/spoof1/Cargo.toml b/programs/sbf/rust/spoof1/Cargo.toml index 59298bdc7105f1..5954e55ab38738 100644 --- a/programs/sbf/rust/spoof1/Cargo.toml +++ b/programs/sbf/rust/spoof1/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/spoof1_system/Cargo.toml b/programs/sbf/rust/spoof1_system/Cargo.toml index 5c6ab906805d09..793ebcaf8a0d50 100644 --- a/programs/sbf/rust/spoof1_system/Cargo.toml +++ b/programs/sbf/rust/spoof1_system/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/syscall-get-epoch-stake/Cargo.toml b/programs/sbf/rust/syscall-get-epoch-stake/Cargo.toml index 006c3bf07aa48f..c7a34ed6eccd7e 100644 --- a/programs/sbf/rust/syscall-get-epoch-stake/Cargo.toml +++ b/programs/sbf/rust/syscall-get-epoch-stake/Cargo.toml @@ -8,11 +8,11 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/sysvar/Cargo.toml b/programs/sbf/rust/sysvar/Cargo.toml index 0a4b9c222c642c..56d90314918586 100644 --- a/programs/sbf/rust/sysvar/Cargo.toml +++ b/programs/sbf/rust/sysvar/Cargo.toml @@ -8,12 +8,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -bincode = { workspace = true } -solana-program = { workspace = true } - [lib] crate-type = ["cdylib"] +[dependencies] +bincode = { workspace = true } +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/upgradeable/Cargo.toml b/programs/sbf/rust/upgradeable/Cargo.toml index 57ebcd4b0ca909..c1915f4e73e376 100644 --- a/programs/sbf/rust/upgradeable/Cargo.toml +++ b/programs/sbf/rust/upgradeable/Cargo.toml @@ -8,12 +8,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] name = "solana_sbf_rust_upgradeable" crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/sbf/rust/upgraded/Cargo.toml b/programs/sbf/rust/upgraded/Cargo.toml index 1214467993b0e9..2c5582b2aa64ae 100644 --- a/programs/sbf/rust/upgraded/Cargo.toml +++ b/programs/sbf/rust/upgraded/Cargo.toml @@ -8,12 +8,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -solana-program = { workspace = true } - [lib] name = "solana_sbf_rust_upgraded" crate-type = ["cdylib"] +[dependencies] +solana-program = { workspace = true } + [lints] workspace = true diff --git a/programs/stake-tests/Cargo.toml b/programs/stake-tests/Cargo.toml index acf79be78fc179..5a10fe69c5fc71 100644 --- a/programs/stake-tests/Cargo.toml +++ b/programs/stake-tests/Cargo.toml @@ -11,6 +11,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dev-dependencies] agave-feature-set = { workspace = true } assert_matches = { workspace = true } @@ -19,6 +22,3 @@ solana-program-test = { workspace = true } solana-sdk = { workspace = true } solana-vote-program = { workspace = true } test-case = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/programs/stake/Cargo.toml b/programs/stake/Cargo.toml index 812d6f87b5a0d6..6c5799081267ae 100644 --- a/programs/stake/Cargo.toml +++ b/programs/stake/Cargo.toml @@ -9,6 +9,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_stake_program" + [dependencies] agave-feature-set = { workspace = true } bincode = { workspace = true } @@ -45,13 +52,6 @@ solana-sysvar-id = { workspace = true } solana-vote-program = { workspace = true, default-features = false } test-case = { workspace = true } -[lib] -crate-type = ["lib"] -name = "solana_stake_program" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - [[bench]] name = "stake" harness = false diff --git a/programs/system/Cargo.toml b/programs/system/Cargo.toml index a17dbcd2fdcd9c..040c71f311d392 100644 --- a/programs/system/Cargo.toml +++ b/programs/system/Cargo.toml @@ -9,6 +9,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_system_program" + [dependencies] bincode = { workspace = true } log = { workspace = true } @@ -41,13 +48,6 @@ solana-rent = { workspace = true } solana-sdk = { workspace = true } solana-sha256-hasher = { workspace = true } -[lib] -crate-type = ["lib"] -name = "solana_system_program" - [[bench]] name = "system" harness = false - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/programs/vote/Cargo.toml b/programs/vote/Cargo.toml index d26b9bb39fb3d0..c8d796bdc1088c 100644 --- a/programs/vote/Cargo.toml +++ b/programs/vote/Cargo.toml @@ -9,6 +9,23 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_vote_program" + +[features] +default = ["metrics"] +frozen-abi = [ + "dep:solana-frozen-abi", + "dep:solana-frozen-abi-macro", + "solana-program-runtime/frozen-abi", + "solana-vote-interface/frozen-abi", +] +metrics = ["dep:solana-metrics"] + [dependencies] agave-feature-set = { workspace = true } bincode = { workspace = true } @@ -61,22 +78,5 @@ test-case = { workspace = true } name = "vote_instructions" harness = false -[lib] -crate-type = ["lib"] -name = "solana_vote_program" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - -[features] -default = ["metrics"] -frozen-abi = [ - "dep:solana-frozen-abi", - "dep:solana-frozen-abi-macro", - "solana-program-runtime/frozen-abi", - "solana-vote-interface/frozen-abi" -] -metrics = ["dep:solana-metrics"] - [lints] workspace = true diff --git a/pubsub-client/Cargo.toml b/pubsub-client/Cargo.toml index 307f1861b264d2..c7823f72af7a0e 100644 --- a/pubsub-client/Cargo.toml +++ b/pubsub-client/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] crossbeam-channel = { workspace = true } futures-util = { workspace = true } @@ -34,6 +37,3 @@ url = { workspace = true } anyhow = { workspace = true } solana-commitment-config = { workspace = true } solana-pubkey = { workspace = true, features = ["rand"] } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/rayon-threadlimit/Cargo.toml b/rayon-threadlimit/Cargo.toml index a22dc9e9fc6348..cd34d0b270ce0d 100644 --- a/rayon-threadlimit/Cargo.toml +++ b/rayon-threadlimit/Cargo.toml @@ -10,9 +10,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] lazy_static = { workspace = true } num_cpus = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/remote-wallet/Cargo.toml b/remote-wallet/Cargo.toml index 75a8691f3cad10..01698749762f57 100644 --- a/remote-wallet/Cargo.toml +++ b/remote-wallet/Cargo.toml @@ -9,6 +9,16 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[features] +default = ["linux-static-hidraw", "hidapi"] +linux-shared-hidraw = ["hidapi/linux-shared-hidraw"] +linux-shared-libusb = ["hidapi/linux-shared-libusb"] +linux-static-hidraw = ["hidapi/linux-static-hidraw"] +linux-static-libusb = ["hidapi/linux-static-libusb"] + [dependencies] console = { workspace = true } dialoguer = { workspace = true } @@ -30,13 +40,3 @@ uriparse = { workspace = true } [dev-dependencies] assert_matches = { workspace = true } solana-pubkey = { workspace = true, features = ["rand"] } - -[features] -default = ["linux-static-hidraw", "hidapi"] -linux-shared-hidraw = ["hidapi/linux-shared-hidraw"] -linux-shared-libusb = ["hidapi/linux-shared-libusb"] -linux-static-hidraw = ["hidapi/linux-static-hidraw"] -linux-static-libusb = ["hidapi/linux-static-libusb"] - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/reserved-account-keys/Cargo.toml b/reserved-account-keys/Cargo.toml index 75b26f81e8b8e7..7cb4c101f86720 100644 --- a/reserved-account-keys/Cargo.toml +++ b/reserved-account-keys/Cargo.toml @@ -9,6 +9,14 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] +all-features = true +rustdoc-args = ["--cfg=docsrs"] + +[features] +frozen-abi = ["dep:solana-frozen-abi", "dep:solana-frozen-abi-macro"] + [dependencies] agave-feature-set = { workspace = true } lazy_static = { workspace = true } @@ -25,13 +33,5 @@ solana-sdk-ids = { workspace = true } solana-message = { workspace = true } solana-sysvar = { workspace = true } -[features] -frozen-abi = ["dep:solana-frozen-abi", "dep:solana-frozen-abi-macro"] - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] -all-features = true -rustdoc-args = ["--cfg=docsrs"] - [lints] workspace = true diff --git a/rpc-client-api/Cargo.toml b/rpc-client-api/Cargo.toml index dc7f9d9ebd5b7e..a8355233d5cacc 100644 --- a/rpc-client-api/Cargo.toml +++ b/rpc-client-api/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] anyhow = { workspace = true } base64 = { workspace = true } @@ -37,6 +40,3 @@ thiserror = { workspace = true } [dev-dependencies] const_format = { workspace = true } solana-pubkey = { workspace = true, features = ["rand"] } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/rpc-client-nonce-utils/Cargo.toml b/rpc-client-nonce-utils/Cargo.toml index e3ebdfea412735..955a14300777da 100644 --- a/rpc-client-nonce-utils/Cargo.toml +++ b/rpc-client-nonce-utils/Cargo.toml @@ -9,6 +9,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[features] +default = [] +clap = ["dep:clap", "dep:solana-clap-utils"] + [dependencies] clap = { version = "2.33.0", optional = true } solana-account = { workspace = true, features = ["bincode"] } @@ -35,10 +42,3 @@ solana-signer = { workspace = true } solana-system-interface = { workspace = true } solana-transaction = { workspace = true } tokio = { workspace = true, features = ["full"] } - -[features] -default = [] -clap = ["dep:clap", "dep:solana-clap-utils"] - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/rpc-client/Cargo.toml b/rpc-client/Cargo.toml index 03acef83fb0a4d..0625296eb1ac67 100644 --- a/rpc-client/Cargo.toml +++ b/rpc-client/Cargo.toml @@ -9,6 +9,15 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[features] +default = ["spinner"] +# Support rpc-client methods that feature a spinner progress bar for +# command-line interfaces +spinner = ["dep:indicatif"] + [dependencies] async-trait = { workspace = true } base64 = { workspace = true } @@ -54,12 +63,3 @@ solana-pubkey = { workspace = true, features = ["rand"] } solana-signer = { workspace = true } solana-system-transaction = { workspace = true } static_assertions = { workspace = true } - -[features] -default = ["spinner"] -# Support rpc-client methods that feature a spinner progress bar for -# command-line interfaces -spinner = ["dep:indicatif"] - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/rpc-test/Cargo.toml b/rpc-test/Cargo.toml index 7e2bdf0bfc4904..7d7ebb8e6311d8 100644 --- a/rpc-test/Cargo.toml +++ b/rpc-test/Cargo.toml @@ -10,6 +10,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] bincode = { workspace = true } bs58 = { workspace = true } @@ -45,6 +48,3 @@ solana-signature = { workspace = true } solana-signer = { workspace = true } solana-system-transaction = { workspace = true } solana-transaction = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/rpc/Cargo.toml b/rpc/Cargo.toml index 8c52945abd5f1e..5e23cd4fda52ba 100644 --- a/rpc/Cargo.toml +++ b/rpc/Cargo.toml @@ -9,6 +9,16 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_rpc" + +[features] +dev-context-only-utils = ["solana-rpc/dev-context-only-utils"] + [dependencies] agave-feature-set = { workspace = true } base64 = { workspace = true } @@ -79,15 +89,3 @@ solana-stake-program = { workspace = true } spl-pod = { workspace = true } symlink = { workspace = true } test-case = { workspace = true } - -[features] -dev-context-only-utils = [ - "solana-rpc/dev-context-only-utils", -] - -[lib] -crate-type = ["lib"] -name = "solana_rpc" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/runtime-transaction/Cargo.toml b/runtime-transaction/Cargo.toml index 9bae40762bd77f..d8ec5c14d88849 100644 --- a/runtime-transaction/Cargo.toml +++ b/runtime-transaction/Cargo.toml @@ -9,6 +9,16 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_runtime_transaction" + +[features] +dev-context-only-utils = ["solana-compute-budget-instruction/dev-context-only-utils"] + [dependencies] agave-transaction-view = { workspace = true } log = { workspace = true } @@ -24,10 +34,6 @@ solana-transaction = { workspace = true } solana-transaction-error = { workspace = true } thiserror = { workspace = true } -[lib] -crate-type = ["lib"] -name = "solana_runtime_transaction" - [dev-dependencies] agave-feature-set = { workspace = true } agave-reserved-account-keys = { workspace = true } @@ -45,12 +51,6 @@ solana-system-interface = { workspace = true, features = ["bincode"] } solana-system-transaction = { workspace = true } solana-transaction = { workspace = true, features = ["blake3"] } -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - -[features] -dev-context-only-utils = ["solana-compute-budget-instruction/dev-context-only-utils"] - [[bench]] name = "get_signature_details" harness = false diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index fe8a3ebef1b7db..edd203cd6df4cf 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -9,6 +9,34 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_runtime" + +[features] +dev-context-only-utils = [ + "dep:solana-system-program", + "solana-svm/dev-context-only-utils", + "solana-runtime-transaction/dev-context-only-utils", +] +frozen-abi = [ + "dep:solana-frozen-abi", + "dep:solana-frozen-abi-macro", + "solana-accounts-db/frozen-abi", + "solana-compute-budget/frozen-abi", + "solana-cost-model/frozen-abi", + "solana-perf/frozen-abi", + "solana-program-runtime/frozen-abi", + "solana-sdk/frozen-abi", + "solana-svm/frozen-abi", + "solana-version/frozen-abi", + "solana-vote/frozen-abi", + "solana-vote-program/frozen-abi", +] + [dependencies] agave-feature-set = { workspace = true } agave-precompiles = { workspace = true } @@ -101,10 +129,6 @@ tempfile = { workspace = true } thiserror = { workspace = true } zstd = { workspace = true } -[lib] -crate-type = ["lib"] -name = "solana_runtime" - [dev-dependencies] agave-transaction-view = { workspace = true } assert_matches = { workspace = true } @@ -128,30 +152,6 @@ solana-transaction-context = { workspace = true, features = ["dev-context-only-u static_assertions = { workspace = true } test-case = { workspace = true } -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - -[features] -dev-context-only-utils = [ - "dep:solana-system-program", - "solana-svm/dev-context-only-utils", - "solana-runtime-transaction/dev-context-only-utils", -] -frozen-abi = [ - "dep:solana-frozen-abi", - "dep:solana-frozen-abi-macro", - "solana-accounts-db/frozen-abi", - "solana-compute-budget/frozen-abi", - "solana-cost-model/frozen-abi", - "solana-perf/frozen-abi", - "solana-program-runtime/frozen-abi", - "solana-sdk/frozen-abi", - "solana-svm/frozen-abi", - "solana-version/frozen-abi", - "solana-vote/frozen-abi", - "solana-vote-program/frozen-abi", -] - [[bench]] name = "prioritization_fee_cache" diff --git a/send-transaction-service/Cargo.toml b/send-transaction-service/Cargo.toml index e13ffe5d7da716..8b2b7a49148322 100644 --- a/send-transaction-service/Cargo.toml +++ b/send-transaction-service/Cargo.toml @@ -9,6 +9,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[features] +dev-context-only-utils = [] + [dependencies] crossbeam-channel = { workspace = true } itertools = { workspace = true } @@ -25,9 +31,3 @@ tokio = { workspace = true, features = ["full"] } [dev-dependencies] solana-logger = { workspace = true } solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } - -[features] -dev-context-only-utils = [] - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/stake-accounts/Cargo.toml b/stake-accounts/Cargo.toml index bc9b930b8e0260..dcfd17e32fd6ae 100644 --- a/stake-accounts/Cargo.toml +++ b/stake-accounts/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] clap = { workspace = true } solana-clap-utils = { workspace = true } @@ -22,6 +25,3 @@ solana-version = { workspace = true } [dev-dependencies] solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/storage-bigtable/Cargo.toml b/storage-bigtable/Cargo.toml index ab10bf2590f384..eb1cce510b3d20 100644 --- a/storage-bigtable/Cargo.toml +++ b/storage-bigtable/Cargo.toml @@ -9,6 +9,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_storage_bigtable" + [dependencies] agave-reserved-account-keys = { workspace = true } backoff = { workspace = true, features = ["tokio"] } @@ -53,10 +60,3 @@ solana-keypair = { workspace = true } solana-pubkey = { workspace = true, features = ["rand"] } solana-system-transaction = { workspace = true } solana-transaction-context = { workspace = true } - -[lib] -crate-type = ["lib"] -name = "solana_storage_bigtable" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/storage-proto/Cargo.toml b/storage-proto/Cargo.toml index acecf3aebf37d5..e617cddcb82c96 100644 --- a/storage-proto/Cargo.toml +++ b/storage-proto/Cargo.toml @@ -9,6 +9,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_storage_proto" + [dependencies] bincode = { workspace = true } bs58 = { workspace = true } @@ -26,16 +33,6 @@ solana-transaction-context = { workspace = true, features = ["serde"] } solana-transaction-error = { workspace = true } solana-transaction-status = { workspace = true } -[dev-dependencies] -enum-iterator = { workspace = true } - -[lib] -crate-type = ["lib"] -name = "solana_storage_proto" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - [build-dependencies] tonic-build = { workspace = true } @@ -43,3 +40,6 @@ tonic-build = { workspace = true } # envar to point to the installed binary [target."cfg(not(windows))".build-dependencies] protobuf-src = { workspace = true } + +[dev-dependencies] +enum-iterator = { workspace = true } diff --git a/streamer/Cargo.toml b/streamer/Cargo.toml index 54e0ce41d1b2ae..bc7890c9920134 100644 --- a/streamer/Cargo.toml +++ b/streamer/Cargo.toml @@ -9,6 +9,16 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_streamer" + +[features] +dev-context-only-utils = [] + [dependencies] async-channel = { workspace = true } bytes = { workspace = true } @@ -56,13 +66,3 @@ solana-logger = { workspace = true } solana-net-utils = { workspace = true, features = ["dev-context-only-utils"] } solana-sdk = { workspace = true } solana-streamer = { path = ".", features = ["dev-context-only-utils"] } - -[features] -dev-context-only-utils = [] - -[lib] -crate-type = ["lib"] -name = "solana_streamer" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/svm-conformance/Cargo.toml b/svm-conformance/Cargo.toml index 2958a425f64276..78a2a3d8d870ea 100644 --- a/svm-conformance/Cargo.toml +++ b/svm-conformance/Cargo.toml @@ -9,12 +9,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] prost = { workspace = true } prost-types = { workspace = true } [build-dependencies] prost-build = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/svm/Cargo.toml b/svm/Cargo.toml index 1c73ec40381b66..9ce4d8f43e2df8 100644 --- a/svm/Cargo.toml +++ b/svm/Cargo.toml @@ -9,6 +9,29 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_svm" + +[features] +dev-context-only-utils = ["dep:qualifier_attr"] +frozen-abi = [ + "dep:solana-frozen-abi", + "dep:solana-frozen-abi-macro", + "solana-compute-budget/frozen-abi", + "solana-program-runtime/frozen-abi", + "solana-sdk/frozen-abi", +] +shuttle-test = [ + "solana-type-overrides/shuttle-test", + "solana-program-runtime/shuttle-test", + "solana-bpf-loader-program/shuttle-test", + "solana-loader-v4-program/shuttle-test", +] + [dependencies] agave-feature-set = { workspace = true } agave-precompiles = { workspace = true } @@ -57,10 +80,6 @@ solana-transaction-error = { workspace = true } solana-type-overrides = { workspace = true } thiserror = { workspace = true } -[lib] -crate-type = ["lib"] -name = "solana_svm" - [dev-dependencies] agave-reserved-account-keys = { workspace = true } assert_matches = { workspace = true } @@ -100,24 +119,5 @@ solana-transaction = { workspace = true } solana-transaction-context = { workspace = true, features = ["dev-context-only-utils" ] } test-case = { workspace = true } -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - -[features] -dev-context-only-utils = ["dep:qualifier_attr"] -frozen-abi = [ - "dep:solana-frozen-abi", - "dep:solana-frozen-abi-macro", - "solana-compute-budget/frozen-abi", - "solana-program-runtime/frozen-abi", - "solana-sdk/frozen-abi", -] -shuttle-test = [ - "solana-type-overrides/shuttle-test", - "solana-program-runtime/shuttle-test", - "solana-bpf-loader-program/shuttle-test", - "solana-loader-v4-program/shuttle-test", -] - [lints] workspace = true diff --git a/svm/examples/Cargo.toml b/svm/examples/Cargo.toml index b6bfa258736e09..6029561ca91ac6 100644 --- a/svm/examples/Cargo.toml +++ b/svm/examples/Cargo.toml @@ -40,10 +40,10 @@ solana-rpc-client-api = { path = "../../rpc-client-api" } solana-sdk = "=2.2.2" solana-svm = { path = "../" } solana-system-program = { path = "../../programs/system" } -solana-version = { path = "../../version" } solana-test-validator = { path = "../../test-validator" } solana-transaction-context = { path = "../../transaction-context" } solana-transaction-status = { path = "../../transaction-status" } +solana-version = { path = "../../version" } spl-associated-token-account = "6.0.0" spl-token = "7.0.0" spl-token-2022 = "7.0.0" diff --git a/svm/examples/json-rpc/client/Cargo.toml b/svm/examples/json-rpc/client/Cargo.toml index 4dbeeada7aab28..00d77d23dd600c 100644 --- a/svm/examples/json-rpc/client/Cargo.toml +++ b/svm/examples/json-rpc/client/Cargo.toml @@ -5,6 +5,10 @@ version = { workspace = true } edition = { workspace = true } publish = false +[features] +dummy-for-ci-check = [] +frozen-abi = [] + [dependencies] borsh = { workspace = true } clap = { workspace = true } @@ -13,7 +17,3 @@ solana-client = { workspace = true } solana-sdk = { workspace = true } thiserror = { workspace = true } yaml-rust = { workspace = true } - -[features] -dummy-for-ci-check = [] -frozen-abi = [] diff --git a/svm/examples/json-rpc/server/Cargo.toml b/svm/examples/json-rpc/server/Cargo.toml index 1e726c95841dce..b48cd3f48d60cf 100644 --- a/svm/examples/json-rpc/server/Cargo.toml +++ b/svm/examples/json-rpc/server/Cargo.toml @@ -5,6 +5,10 @@ version = { workspace = true } edition = { workspace = true } publish = false +[features] +dummy-for-ci-check = [] +frozen-abi = [] + [dependencies] agave-feature-set = { workspace = true } agave-reserved-account-keys = { workspace = true } @@ -36,7 +40,3 @@ solana-version = { workspace = true } spl-token-2022 = { workspace = true, features = ["no-entrypoint"] } tokio = { workspace = true, features = ["full"] } tokio-util = { workspace = true, features = ["codec", "compat"] } - -[features] -dummy-for-ci-check = [] -frozen-abi = [] diff --git a/svm/examples/paytube/Cargo.toml b/svm/examples/paytube/Cargo.toml index 24e0e303ffaddd..b7bdf7a5bbb6fd 100644 --- a/svm/examples/paytube/Cargo.toml +++ b/svm/examples/paytube/Cargo.toml @@ -5,6 +5,10 @@ version = { workspace = true } edition = { workspace = true } publish = false +[features] +dummy-for-ci-check = [] +frozen-abi = [] + [dependencies] agave-feature-set = { workspace = true } solana-bpf-loader-program = { workspace = true } @@ -21,7 +25,3 @@ termcolor = { workspace = true } [dev-dependencies] solana-test-validator = { workspace = true } - -[features] -dummy-for-ci-check = [] -frozen-abi = [] diff --git a/test-validator/Cargo.toml b/test-validator/Cargo.toml index 0aefbe8f091921..7008d204ac3af3 100644 --- a/test-validator/Cargo.toml +++ b/test-validator/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] agave-feature-set = { workspace = true } base64 = { workspace = true } @@ -38,6 +41,3 @@ tokio = { workspace = true, features = ["full"] } [dev-dependencies] solana-sdk-ids = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/thin-client/Cargo.toml b/thin-client/Cargo.toml index ef982440b26e0f..b3b5e0eaca9391 100644 --- a/thin-client/Cargo.toml +++ b/thin-client/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] bincode = { workspace = true } log = { workspace = true } @@ -34,6 +37,3 @@ solana-transaction-error = { workspace = true } [dev-dependencies] solana-logger = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/thread-manager/Cargo.toml b/thread-manager/Cargo.toml index 195bb4203e5e3a..1482012b578bfd 100644 --- a/thread-manager/Cargo.toml +++ b/thread-manager/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[features] +dev-context-only-utils = [] + [dependencies] anyhow = { workspace = true } cfg-if = { workspace = true } @@ -31,6 +34,3 @@ hyper = { workspace = true, features = ["http1", "client", "stream", "tcp"] } serde_json = { workspace = true } toml = { workspace = true } tower = { workspace = true } - -[features] -dev-context-only-utils = [] diff --git a/timings/Cargo.toml b/timings/Cargo.toml index 2f16de53426f30..5d66b66cde6b6f 100644 --- a/timings/Cargo.toml +++ b/timings/Cargo.toml @@ -9,10 +9,10 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] eager = { workspace = true } enum-iterator = { workspace = true } solana-pubkey = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/tps-client/Cargo.toml b/tps-client/Cargo.toml index d1693a38ee5ad8..e10d1cae716e90 100644 --- a/tps-client/Cargo.toml +++ b/tps-client/Cargo.toml @@ -8,6 +8,14 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] +all-features = true +rustdoc-args = ["--cfg=docsrs"] + +[features] +bank-client = ["dep:solana-client-traits", "dep:solana-runtime"] + [dependencies] log = { workspace = true } solana-account = { workspace = true } @@ -39,11 +47,3 @@ serial_test = { workspace = true } solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } solana-test-validator = { workspace = true } tempfile = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] -all-features = true -rustdoc-args = ["--cfg=docsrs"] - -[features] -bank-client = ["dep:solana-client-traits", "dep:solana-runtime"] diff --git a/tpu-client-next/Cargo.toml b/tpu-client-next/Cargo.toml index 0de5d1713caecc..a6cf63fe155cb6 100644 --- a/tpu-client-next/Cargo.toml +++ b/tpu-client-next/Cargo.toml @@ -8,6 +8,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] async-trait = { workspace = true } log = { workspace = true } @@ -37,6 +40,3 @@ solana-commitment-config = { workspace = true } solana-pubkey = { workspace = true } solana-signer = { workspace = true } solana-streamer = { workspace = true, features = ["dev-context-only-utils"] } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/tpu-client/Cargo.toml b/tpu-client/Cargo.toml index 846c7207dee587..96fdc2f26288a2 100644 --- a/tpu-client/Cargo.toml +++ b/tpu-client/Cargo.toml @@ -9,6 +9,19 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[features] +default = ["spinner"] +# Support tpu-client methods that feature a spinner progress bar for +# command-line interfaces +spinner = [ + "dep:indicatif", + "dep:solana-message", + "solana-rpc-client/spinner", +] + [dependencies] async-trait = { workspace = true } bincode = { workspace = true } @@ -36,16 +49,3 @@ solana-transaction = { workspace = true } solana-transaction-error = { workspace = true } thiserror = { workspace = true } tokio = { workspace = true, features = ["full"] } - -[features] -default = ["spinner"] -# Support tpu-client methods that feature a spinner progress bar for -# command-line interfaces -spinner = [ - "dep:indicatif", - "dep:solana-message", - "solana-rpc-client/spinner" -] - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/transaction-context/Cargo.toml b/transaction-context/Cargo.toml index ac69c2ca5e1cce..4d2e821d338aa9 100644 --- a/transaction-context/Cargo.toml +++ b/transaction-context/Cargo.toml @@ -9,6 +9,21 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] +all-features = true +rustdoc-args = ["--cfg=docsrs"] + +[features] +bincode = ["dep:bincode", "serde", "solana-account/bincode"] +debug-signature = ["dep:solana-signature"] +dev-context-only-utils = [ + "bincode", + "debug-signature", + "solana-account/dev-context-only-utils", +] +serde = ["dep:serde", "dep:serde_derive"] + [dependencies] serde = { workspace = true, optional = true } serde_derive = { workspace = true, optional = true } @@ -17,11 +32,6 @@ solana-instruction = { workspace = true, features = ["std"] } solana-instructions-sysvar = { workspace = true } solana-pubkey = { workspace = true } -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] -all-features = true -rustdoc-args = ["--cfg=docsrs"] - [target.'cfg(not(target_os = "solana"))'.dependencies] bincode = { workspace = true, optional = true } solana-rent = { workspace = true } @@ -35,15 +45,5 @@ solana-transaction-context = { path = ".", features = [ ] } static_assertions = { workspace = true } -[features] -bincode = ["dep:bincode", "serde", "solana-account/bincode"] -debug-signature = ["dep:solana-signature"] -dev-context-only-utils = [ - "bincode", - "debug-signature", - "solana-account/dev-context-only-utils" -] -serde = ["dep:serde", "dep:serde_derive"] - [lints] workspace = true diff --git a/transaction-dos/Cargo.toml b/transaction-dos/Cargo.toml index ccf7b7094391e9..343f47f1f9f407 100644 --- a/transaction-dos/Cargo.toml +++ b/transaction-dos/Cargo.toml @@ -8,6 +8,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] bincode = { workspace = true } clap = { workspace = true } @@ -33,6 +36,3 @@ solana-version = { workspace = true } solana-core = { workspace = true, features = ["dev-context-only-utils"] } solana-local-cluster = { workspace = true } solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/transaction-metrics-tracker/Cargo.toml b/transaction-metrics-tracker/Cargo.toml index cdebb328609964..bf8284016ae4b6 100644 --- a/transaction-metrics-tracker/Cargo.toml +++ b/transaction-metrics-tracker/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] base64 = { workspace = true } bincode = { workspace = true } @@ -26,6 +29,3 @@ solana-hash = { workspace = true } solana-keypair = { workspace = true } solana-pubkey = { workspace = true, features = ["rand"] } solana-system-transaction = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/transaction-status-client-types/Cargo.toml b/transaction-status-client-types/Cargo.toml index 7c1fec2a45b2b9..d67ad700d692c4 100644 --- a/transaction-status-client-types/Cargo.toml +++ b/transaction-status-client-types/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] base64 = { workspace = true } bincode = { workspace = true } @@ -25,6 +28,3 @@ solana-transaction = { workspace = true, features = ["serde"] } solana-transaction-context = { workspace = true } solana-transaction-error = { workspace = true, features = ["serde"] } thiserror = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/transaction-status/Cargo.toml b/transaction-status/Cargo.toml index 83f3d138288312..b5207bb28fd6b0 100644 --- a/transaction-status/Cargo.toml +++ b/transaction-status/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] Inflector = { workspace = true } agave-reserved-account-keys = { workspace = true } @@ -49,6 +52,3 @@ thiserror = { workspace = true } bytemuck = { workspace = true } solana-pubkey = { workspace = true, features = ["rand"] } spl-token-confidential-transfer-proof-extraction = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/transaction-view/Cargo.toml b/transaction-view/Cargo.toml index 575e2022139d50..256136558ea661 100644 --- a/transaction-view/Cargo.toml +++ b/transaction-view/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[features] +dev-context-only-utils = [] + [dependencies] solana-hash = { workspace = true } solana-message = { workspace = true } @@ -32,9 +35,6 @@ solana-signer = { workspace = true } solana-system-interface = { workspace = true, features = ["bincode"] } solana-transaction = { workspace = true, features = ["bincode"] } -[features] -dev-context-only-utils = [] - [[bench]] name = "bytes" harness = false diff --git a/type-overrides/Cargo.toml b/type-overrides/Cargo.toml index 07b69542e53e6f..2a6e4b35453b7a 100644 --- a/type-overrides/Cargo.toml +++ b/type-overrides/Cargo.toml @@ -8,12 +8,12 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[features] +shuttle-test = ["dep:shuttle"] +executor = ["dep:futures"] + [dependencies] futures = { workspace = true, optional = true } lazy_static = { workspace = true } rand = { workspace = true } shuttle = { workspace = true, optional = true } - -[features] -shuttle-test = ["dep:shuttle"] -executor = ["dep:futures"] diff --git a/unified-scheduler-pool/Cargo.toml b/unified-scheduler-pool/Cargo.toml index 091191229e2333..1e1ae684aba7a0 100644 --- a/unified-scheduler-pool/Cargo.toml +++ b/unified-scheduler-pool/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[features] +dev-context-only-utils = [] + [dependencies] agave-banking-stage-ingress-types = { workspace = true } aquamarine = { workspace = true } @@ -45,6 +48,3 @@ solana-logger = { workspace = true } solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } solana-system-transaction = { workspace = true } test-case = { workspace = true } - -[features] -dev-context-only-utils = [] diff --git a/upload-perf/Cargo.toml b/upload-perf/Cargo.toml index cceca061d37f70..544acc55c76f20 100644 --- a/upload-perf/Cargo.toml +++ b/upload-perf/Cargo.toml @@ -9,13 +9,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } -[dependencies] -serde_json = { workspace = true } -solana-metrics = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] [[bin]] name = "solana-upload-perf" path = "src/upload-perf.rs" -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] +[dependencies] +serde_json = { workspace = true } +solana-metrics = { workspace = true } diff --git a/validator/Cargo.toml b/validator/Cargo.toml index 5134f7c32d04b7..f5d8dfbf027fd5 100644 --- a/validator/Cargo.toml +++ b/validator/Cargo.toml @@ -10,6 +10,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] agave-geyser-plugin-interface = { workspace = true } chrono = { workspace = true, features = ["default", "serde"] } @@ -68,6 +71,13 @@ symlink = { workspace = true } thiserror = { workspace = true } tokio = { workspace = true } +[target.'cfg(not(any(target_env = "msvc", target_os = "freebsd")))'.dependencies] +jemallocator = { workspace = true } + +[target."cfg(unix)".dependencies] +libc = { workspace = true } +signal-hook = { workspace = true } + [dev-dependencies] assert_cmd = { workspace = true } predicates = { workspace = true } @@ -76,13 +86,3 @@ solana-inline-spl = { workspace = true } solana-runtime = { workspace = true, features = ["dev-context-only-utils"] } spl-token-2022 = { workspace = true, features = ["no-entrypoint"] } tempfile = { workspace = true } - -[target.'cfg(not(any(target_env = "msvc", target_os = "freebsd")))'.dependencies] -jemallocator = { workspace = true } - -[target."cfg(unix)".dependencies] -libc = { workspace = true } -signal-hook = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/version/Cargo.toml b/version/Cargo.toml index cd105444abde3e..1b6a6ca34e0b57 100644 --- a/version/Cargo.toml +++ b/version/Cargo.toml @@ -9,6 +9,16 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +name = "solana_version" + +[features] +dummy-for-ci-check = [] +frozen-abi = ["dep:solana-frozen-abi", "dep:solana-frozen-abi-macro"] + [dependencies] agave-feature-set = { workspace = true } semver = { workspace = true } @@ -23,18 +33,5 @@ solana-frozen-abi-macro = { workspace = true, optional = true, features = [ solana-sanitize = { workspace = true } solana-serde-varint = { workspace = true } -[features] -dummy-for-ci-check = [] -frozen-abi = [ - "dep:solana-frozen-abi", - "dep:solana-frozen-abi-macro", -] - -[lib] -name = "solana_version" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - [lints] workspace = true diff --git a/vortexor/Cargo.toml b/vortexor/Cargo.toml index 8973c32adcff2f..80ada6b32935b5 100644 --- a/vortexor/Cargo.toml +++ b/vortexor/Cargo.toml @@ -11,6 +11,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_vortexor" + [dependencies] async-channel = { workspace = true } bytes = { workspace = true } @@ -53,10 +60,3 @@ x509-parser = { workspace = true } assert_matches = { workspace = true } solana-logger = { workspace = true } solana-streamer = { workspace = true, features = ["dev-context-only-utils"] } - -[lib] -crate-type = ["lib"] -name = "solana_vortexor" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/vote/Cargo.toml b/vote/Cargo.toml index 05c6e40cf387b3..cace176728d5ef 100644 --- a/vote/Cargo.toml +++ b/vote/Cargo.toml @@ -9,6 +9,17 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +crate-type = ["lib"] +name = "solana_vote" + +[features] +dev-context-only-utils = ["dep:rand"] +frozen-abi = ["dep:solana-frozen-abi", "dep:solana-frozen-abi-macro"] + [dependencies] itertools = { workspace = true } log = { workspace = true } @@ -35,10 +46,6 @@ solana-transaction = { workspace = true } solana-vote-interface = { workspace = true, features = ["bincode"] } thiserror = { workspace = true } -[lib] -crate-type = ["lib"] -name = "solana_vote" - [dev-dependencies] bincode = { workspace = true } rand = { workspace = true } @@ -47,12 +54,5 @@ solana-sha256-hasher = { workspace = true } solana-signer = { workspace = true } solana-transaction = { workspace = true, features = ["bincode"] } -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] - -[features] -dev-context-only-utils = ["dep:rand"] -frozen-abi = ["dep:solana-frozen-abi", "dep:solana-frozen-abi-macro"] - [lints] workspace = true diff --git a/watchtower/Cargo.toml b/watchtower/Cargo.toml index 9560bc490c28e5..58c1f79bf5f892 100644 --- a/watchtower/Cargo.toml +++ b/watchtower/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] clap = { workspace = true } humantime = { workspace = true } @@ -25,6 +28,3 @@ solana-pubkey = { version = "=2.2.1", default-features = false } solana-rpc-client = { workspace = true } solana-rpc-client-api = { workspace = true } solana-version = { workspace = true } - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/wen-restart/Cargo.toml b/wen-restart/Cargo.toml index b31731978bc0a2..2dd5e52aea5fca 100644 --- a/wen-restart/Cargo.toml +++ b/wen-restart/Cargo.toml @@ -10,6 +10,12 @@ license = { workspace = true } edition = { workspace = true } publish = true +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[lib] +name = "solana_wen_restart" + [dependencies] anyhow = { workspace = true } log = { workspace = true } @@ -29,6 +35,14 @@ solana-time-utils = { workspace = true } solana-timings = { workspace = true } solana-vote-program = { workspace = true } +[build-dependencies] +prost-build = { workspace = true } + +# windows users should install the protobuf compiler manually and set the PROTOC +# envar to point to the installed binary +[target."cfg(not(windows))".build-dependencies] +protobuf-src = { workspace = true } + [dev-dependencies] assert_matches = { workspace = true } rand = { workspace = true } @@ -42,17 +56,3 @@ solana-signer = { workspace = true } solana-streamer = { workspace = true } solana-vote = { workspace = true } tempfile = { workspace = true } - -[build-dependencies] -prost-build = { workspace = true } - -# windows users should install the protobuf compiler manually and set the PROTOC -# envar to point to the installed binary -[target."cfg(not(windows))".build-dependencies] -protobuf-src = { workspace = true } - -[lib] -name = "solana_wen_restart" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/zk-keygen/Cargo.toml b/zk-keygen/Cargo.toml index b7ab25493709bb..4465c17219c4d7 100644 --- a/zk-keygen/Cargo.toml +++ b/zk-keygen/Cargo.toml @@ -15,6 +15,13 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[[bin]] +name = "solana-zk-keygen" +path = "src/main.rs" + [dependencies] bs58 = { workspace = true } clap = { version = "3.1.5", features = ["cargo", "derive"] } @@ -31,10 +38,3 @@ tiny-bip39 = { workspace = true } [dev-dependencies] solana-pubkey = { workspace = true, features = ["rand"] } tempfile = { workspace = true } - -[[bin]] -name = "solana-zk-keygen" -path = "src/main.rs" - -[package.metadata.docs.rs] -targets = ["x86_64-unknown-linux-gnu"] diff --git a/zk-sdk/Cargo.toml b/zk-sdk/Cargo.toml index 797f4a1ab13099..12f7ee862d5d63 100644 --- a/zk-sdk/Cargo.toml +++ b/zk-sdk/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib", "rlib"] + [dependencies] base64 = { workspace = true } bytemuck = { workspace = true } @@ -21,9 +24,8 @@ solana-pubkey = { workspace = true, features = ["bytemuck"] } solana-sdk-ids = { workspace = true } thiserror = { workspace = true } -[dev-dependencies] -solana-keypair = { workspace = true } -tiny-bip39 = { workspace = true } +[target.'cfg(not(target_arch = "wasm32"))'.dependencies] +solana-pubkey = { workspace = true, features = ["bytemuck"] } [target.'cfg(not(target_os = "solana"))'.dependencies] aes-gcm-siv = { workspace = true } @@ -44,15 +46,13 @@ solana-signer = { workspace = true } subtle = { workspace = true } zeroize = { workspace = true, features = ["zeroize_derive"] } -[target.'cfg(not(target_arch = "wasm32"))'.dependencies] -solana-pubkey = { workspace = true, features = ["bytemuck"] } - [target.'cfg(target_arch = "wasm32")'.dependencies] js-sys = { workspace = true } wasm-bindgen = { workspace = true } -[lib] -crate-type = ["cdylib", "rlib"] +[dev-dependencies] +solana-keypair = { workspace = true } +tiny-bip39 = { workspace = true } [lints] workspace = true diff --git a/zk-token-sdk/Cargo.toml b/zk-token-sdk/Cargo.toml index e8cf3dc8ac958f..1b86d5ccea33a0 100644 --- a/zk-token-sdk/Cargo.toml +++ b/zk-token-sdk/Cargo.toml @@ -9,6 +9,9 @@ homepage = { workspace = true } license = { workspace = true } edition = { workspace = true } +[lib] +crate-type = ["cdylib", "rlib"] + [dependencies] base64 = { workspace = true } bytemuck = { workspace = true } @@ -21,10 +24,6 @@ solana-pubkey = { workspace = true, features = ["bytemuck"] } solana-sdk-ids = { workspace = true } thiserror = { workspace = true } -[dev-dependencies] -solana-keypair = { workspace = true } -tiny-bip39 = { workspace = true } - [target.'cfg(not(target_os = "solana"))'.dependencies] aes-gcm-siv = { workspace = true } bincode = { workspace = true } @@ -45,8 +44,9 @@ solana-signer = { workspace = true } subtle = { workspace = true } zeroize = { workspace = true, features = ["zeroize_derive"] } -[lib] -crate-type = ["cdylib", "rlib"] +[dev-dependencies] +solana-keypair = { workspace = true } +tiny-bip39 = { workspace = true } [lints] workspace = true