You've already forked architect
Restructure crates and update configs
This commit is contained in:
@@ -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"
|
||||
@@ -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:?})"));
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
Reference in New Issue
Block a user