99 releases (27 breaking)

Uses new Rust 2024

0.201.0 Apr 2, 2025
0.201.0-rc2 Mar 25, 2025
0.200.0 Mar 5, 2025
0.120.0 Dec 11, 2024
0.38.0 Nov 18, 2020

#9 in #nervos

Download history 1216/week @ 2024-12-25 1320/week @ 2025-01-01 1563/week @ 2025-01-08 1818/week @ 2025-01-15 1202/week @ 2025-01-22 283/week @ 2025-01-29 1014/week @ 2025-02-05 743/week @ 2025-02-12 1047/week @ 2025-02-19 2087/week @ 2025-02-26 1145/week @ 2025-03-05 1976/week @ 2025-03-12 1359/week @ 2025-03-19 903/week @ 2025-03-26 551/week @ 2025-04-02 897/week @ 2025-04-09

3,912 downloads per month
Used in 61 crates (8 directly)

MIT license

265KB
5.5K SLoC

Bundles resources in the ckb binary.

This crate bundles the files ckb.toml, ckb-miner.toml, default.db-options, and all files in the directory specs in the binary.

The bundled files can be read via Resource::Bundled, for example:

// Read bundled ckb.toml
use ckb_resource::{Resource, CKB_CONFIG_FILE_NAME};

let ckb_toml_bytes = Resource::bundled(CKB_CONFIG_FILE_NAME.to_string()).get().unwrap();
println!("ckb.toml\n{}", String::from_utf8(ckb_toml_bytes.to_vec()).unwrap());

These bundled files can be customized for different chains using spec branches. See Template.


ckb-resource

This crate is a component of ckb.

Bundled resources for the CKB binary.

Minimum Supported Rust Version policy (MSRV)

This crate's minimum supported rustc version is 1.85.0

Dependencies

~6–8.5MB
~133K SLoC