sdk

Radroots SDK and bindings
git clone https://radroots.dev/git/sdk.git
Log | Files | Refs | README

commit 75c719bc0f79ae12a3e4a13a56d5a8943985c8d5
parent 235f088795e2849f1a99574f5ca68c22d75b8d0b
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/xtask/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/xtask/src/check.rs b/tools/xtask/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}"