From 7a12e48dbb2e6cecff2cb97c23a2c27d1efbae3c Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Thu, 3 Oct 2024 20:34:47 -0700 Subject: [PATCH] content: Add notes on `no_std` compatibility. --- all-is-cubes-content/Cargo.toml | 4 ++-- all-is-cubes-content/src/lib.rs | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/all-is-cubes-content/Cargo.toml b/all-is-cubes-content/Cargo.toml index 4acb7df97..623c9dfe2 100644 --- a/all-is-cubes-content/Cargo.toml +++ b/all-is-cubes-content/Cargo.toml @@ -39,9 +39,9 @@ hashbrown = { workspace = true } itertools = { workspace = true } log = { workspace = true } macro_rules_attribute = { workspace = true } -noise = { workspace = true } +noise = { workspace = true } # TODO: not no_std compatible (fixable) paste = { workspace = true } -petgraph = { workspace = true } +petgraph = { workspace = true } # TODO: not no_std compatible (might become so someday) rand = { workspace = true } rand_xoshiro = { workspace = true } strum = { workspace = true, features = ["derive"] } diff --git a/all-is-cubes-content/src/lib.rs b/all-is-cubes-content/src/lib.rs index 2c57f41d4..5413ebb63 100644 --- a/all-is-cubes-content/src/lib.rs +++ b/all-is-cubes-content/src/lib.rs @@ -7,6 +7,10 @@ //! provide [`UniverseTemplate`]; other items should be assumed not particularly //! stable. +// This crate is *almost* `no_std` compatible; critically, some dependencies are not. +// See comments in `Cargo.toml` for details. +// For now, the code is just in a state of “reveal how close it is”, hence using `core` and +// `alloc` imports only. #![no_std] // // Crate-specific lint settings. (General settings can be found in the workspace manifest.)