110 releases (3 stable)

Uses new Rust 2024

1.0.2 Dec 18, 2025
1.0.0 Oct 29, 2025
0.203.0 Oct 22, 2025
0.202.0 Jun 11, 2025
0.38.0 Nov 18, 2020

#23 in #ckb

Download history 1507/week @ 2025-10-16 1662/week @ 2025-10-23 1704/week @ 2025-10-30 2017/week @ 2025-11-06 2071/week @ 2025-11-13 2626/week @ 2025-11-20 4214/week @ 2025-11-27 5005/week @ 2025-12-04 5219/week @ 2025-12-11 5545/week @ 2025-12-18 4907/week @ 2025-12-25 4765/week @ 2026-01-01 6158/week @ 2026-01-08 5952/week @ 2026-01-15 7478/week @ 2026-01-22 8680/week @ 2026-01-29

29,854 downloads per month
Used in 65 crates (10 directly)

MIT license

275KB
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.

Bundles resources in the ckb binary

Dependencies

~5.5–7.5MB
~131K SLoC