lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README

commit 52095e03b168c694223be519fa76417590ca7ac5
parent 646e3c75b633b03aac6d1828632dd1719ed3b8fc
Author: triesap <tyson@radroots.org>
Date:   Tue,  4 Aug 2026 11:42:08 +0000

build(package): retain sdk crate tests

- include sdk and facade tests in crate archives
- require test payloads in sdk metadata policy
- preserve curated examples and license files
- enable meaningful extracted-archive testing

Diffstat:
Mcrates/radroots/Cargo.toml | 2+-
Mcrates/sdk/Cargo.toml | 2+-
Mtools/sdk_xtask_import/src/check.rs | 8+++++++-
3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/crates/radroots/Cargo.toml b/crates/radroots/Cargo.toml @@ -12,7 +12,7 @@ readme = "README.md" documentation = "https://docs.rs/radroots" keywords = ["radroots", "local-food", "sdk", "nostr"] categories = ["api-bindings", "asynchronous", "network-programming"] -include = ["src/**", "examples/**", "Cargo.toml", "README.md", "LICENSE-APACHE", "LICENSE-MIT"] +include = ["src/**", "tests/**", "examples/**", "Cargo.toml", "README.md", "LICENSE-APACHE", "LICENSE-MIT"] publish = ["crates-io"] autoexamples = false diff --git a/crates/sdk/Cargo.toml b/crates/sdk/Cargo.toml @@ -13,7 +13,7 @@ readme = "README.md" documentation = "https://docs.rs/radroots_sdk" keywords = ["radroots", "sdk", "local-food", "nostr"] categories = ["api-bindings", "asynchronous", "network-programming"] -include = ["src/**", "examples/**", "Cargo.toml", "README.md", "LICENSE-APACHE", "LICENSE-MIT"] +include = ["src/**", "tests/**", "examples/**", "Cargo.toml", "README.md", "LICENSE-APACHE", "LICENSE-MIT"] autotests = false autoexamples = false diff --git a/tools/sdk_xtask_import/src/check.rs b/tools/sdk_xtask_import/src/check.rs @@ -796,7 +796,13 @@ fn check_public_rust_package_metadata(root: &Path) -> Result<(), String> { )); } let include = package_string_array(package, &package_name, "include")?; - for required in ["src/**", "README.md", "LICENSE-APACHE", "LICENSE-MIT"] { + for required in [ + "src/**", + "tests/**", + "README.md", + "LICENSE-APACHE", + "LICENSE-MIT", + ] { if !include.contains(&required) { return Err(format!( "public package {package_name} package.include must contain {required}"