semx_target_define 0.1.61

seminix 项目统一管理跨平台编译器 target 三元组
Documentation
  • Coverage
  • 100%
    5 out of 5 items documented0 out of 0 items with examples
  • Size
  • Source code size: 4.26 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 97.61 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • hengtianzhang

semx_target_define

crates.io docs.rs

seminix 项目跨平台编译器 target 三元组统一定义。

#![no_std]、零依赖,改一处即可全局生效。

定义

常量 用途
KERNEL_AARCH64 aarch64-unknown-none-softfloat 内核态 aarch64
KERNEL_RISCV64 riscv64imac-unknown-none-elf 内核态 riscv64
USER_AARCH64 aarch64-unknown-none 用户态 aarch64
USER_RISCV64 riscv64gc-unknown-none-elf 用户态 riscv64

用法

use semx_target_define::KERNEL_AARCH64;

assert_eq!(KERNEL_AARCH64, "aarch64-unknown-none-softfloat");