Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • H hwio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • redox-osredox-os
  • hwio
  • Merge requests
  • !5

Split stable feature into std+stable

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Tim Crawford requested to merge tcrawford/hwio:stable-std into master Mar 10, 2022
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 4

Add a new std feature, selected by default. This controls whether the lib is built for no_std and uses features from std.

The const_fn_trait_bound feature is stable since Rust 1.61.0, so the stable feature is left unused.

Allows building for no_std by disabling default features.

On x86, PIO does not use std and writing to /dev/port, and instead always uses the IN and OUT assembly instructions.

cargo +stable build --release
cargo +stable build --release --no-default-features
cargo +nightly-2022-03-18 build --release --no-default-features --target x86_64-unknown-uefi -Zbuild-std=core
Edited Oct 21, 2022 by Tim Crawford
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: stable-std