This repository was archived by the owner on Sep 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 77# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88
99[dependencies ]
10- cfg-if = " 1.0"
1110bitflags = " 2.1"
1211memory_addr = { path = " ../memory_addr" }
1312
Original file line number Diff line number Diff line change 1- cfg_if :: cfg_if! {
2- if # [ cfg ( any ( target_arch = " x86_64" ) ) ] {
3- pub mod x86_64 ;
4- } else if # [ cfg( any( target_arch = "riscv32" , target_arch = "riscv64" ) ) ] {
5- pub mod riscv;
6- } else if # [ cfg ( target_arch = "aarch64" ) ] {
7- pub mod aarch64 ;
8- }
9- }
1+ # [ cfg ( target_arch = "x86_64" ) ]
2+ pub mod x86_64;
3+
4+ # [ doc ( cfg( any( target_arch = "riscv32" , target_arch = "riscv64" ) ) ) ]
5+ pub mod riscv;
6+
7+ // TODO: `#[cfg(any(target_arch = "aarch64", doc))]` does not work.
8+ # [ doc ( cfg ( target_arch = "aarch64" ) ) ]
9+ pub mod aarch64 ;
Original file line number Diff line number Diff line change 11#![ no_std]
22#![ feature( const_trait_impl) ]
3+ #![ feature( doc_auto_cfg) ]
4+ #![ feature( doc_cfg) ]
35
46mod arch;
57
68use core:: fmt:: Debug ;
79use memory_addr:: PhysAddr ;
810
9- pub use arch:: * ;
11+ pub use self :: arch:: * ;
1012
1113bitflags:: bitflags! {
1214 #[ derive( Debug , Clone , Copy ) ]
You can’t perform that action at this time.
0 commit comments