Skip to content

Commit

Permalink
Merge pull request #1 from toku-sa-n/stable
Browse files Browse the repository at this point in the history
Add `nightly` and `stable` feature flags to enable compilation on stable Rust
  • Loading branch information
phil-opp authored Aug 22, 2021
2 parents 65efd39 + aa0cca8 commit e1b6b60
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ readme = "README.md"
keywords = ["no_std", "kernel", "interrupts"]
license = "Apache-2.0/MIT"

[features]
default = ["nightly"]
nightly = ["x86_64/inline_asm"]
stable = ["x86_64/external_asm"]

[dependencies]
x86_64 = { version = "0.14.2", default-features = false, features = ["instructions", "inline_asm"] }
x86_64 = { version = "0.14.2", default-features = false, features = ["instructions"] }

[package.metadata.release]
no-dev-version = true
Expand Down
2 changes: 2 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Unreleased

- Add `nightly` and `stable` feature flags to enable compilation on stable Rust ([#1](https://github.com/rust-osdev/pic8259/pull/1))

# 0.10.1 – 2021-05-17

- Update repository link in crate metadata.
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ do.
All public PIC interfaces are `unsafe`, because it's really easy to trigger
undefined behavior by misconfiguring the PIC or using it incorrectly.

## Crate Feature Flags

- `nightly` - Uses features that are only usable on nightly Rust. Enabled by default.
- `stable` - Enable this feature flag to build this crate on stable Rust. You have to add `default-features = false, features = ["stable"]` to your `Cargo.toml`.

## Licensing

Licensed under the [Apache License, Version 2.0][LICENSE-APACHE] or the
Expand Down

0 comments on commit e1b6b60

Please sign in to comment.