implement MAC auth for felica

This commit is contained in:
2026-08-28 21:56:37 +08:00
parent f523b7d394
commit 494f4b92eb
20 changed files with 562 additions and 233 deletions
+11
View File
@@ -2,6 +2,17 @@ fn main() {
println!("cargo:rerun-if-changed=Cargo.toml");
patch_crate::run().expect("Failed while patching");
let iter = dotenvy::from_path_iter(".env")
.expect("failed to read .env");
for item in iter {
let (key, value) = item.expect("invalid .env entry");
println!("cargo::rustc-env={key}={value}");
}
println!("cargo::rerun-if-changed=.env");
linker_be_nice();
println!("cargo:rustc-link-arg=-Tdefmt.x");
// make sure linkall.x is the last linker script (otherwise might cause problems with flip-link)