Restructure crates and update configs

This commit is contained in:
2026-05-31 17:05:07 -06:00
parent 681cc73479
commit bf8694a04c
14 changed files with 23 additions and 19 deletions
+31
View File
@@ -0,0 +1,31 @@
[package]
name = "sample"
version = "0.0.0"
license-file.workspace = true
edition.workspace = true
rust-version.workspace = true
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[build-dependencies]
architect = { workspace = true }
[lints.clippy]
arithmetic_side_effects = "forbid"
as_conversions = "forbid"
checked_conversions = "forbid"
default_union_representation = "forbid"
expect_used = "forbid"
indexing_slicing = "forbid"
integer_division = "forbid"
integer_division_remainder_used = "forbid"
transmute_undefined_repr = "forbid"
unchecked_duration_subtraction = "forbid"
unwrap_used = "deny"
[lints.rust]
arithmetic_overflow = "forbid"
unsafe_code = "forbid"
+17
View File
@@ -0,0 +1,17 @@
fn main() {
for (k, v) in std::env::vars() {
architect::output::raw::warning(&format!("{k}={v}"));
}
#[allow(clippy::unwrap_used)]
let manifest_path = architect::input::raw::cargo_manifest_path_os().unwrap();
architect::output::raw::warning(&format!("Manifest Path: {manifest_path:?}"));
#[allow(clippy::unwrap_used)]
let arch = architect::input::raw::cargo_cfg_target_arch_os().unwrap();
#[allow(clippy::unwrap_used)]
let os = architect::input::raw::cargo_cfg_target_os_os().unwrap();
#[allow(clippy::unwrap_used)]
let endian = architect::input::raw::cargo_cfg_target_endian_os().unwrap();
architect::output::raw::warning(&format!("Target: {arch:?} {os:?} ({endian:?})"));
}
+1
View File
@@ -0,0 +1 @@