Skip to content

Commit

Permalink
Update CI and switch to stable Rust
Browse files Browse the repository at this point in the history
Signed-off-by: Maksym Pavlenko <[email protected]>
  • Loading branch information
mxpv committed Oct 4, 2024
1 parent bc86a4f commit cc0e357
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request]
jobs:
checks:
name: Checks
runs-on: macos-10.15
runs-on: [macos-15, macos-14]
steps:
- uses: actions/checkout@v2
- run: cargo check --examples --tests --all-targets
Expand Down
1 change: 0 additions & 1 deletion hv-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
#![allow(improper_ctypes)]
// Comes from unit tests, don't care much
#![allow(deref_nullptr)]
#![allow(unaligned_references)]

include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
8 changes: 4 additions & 4 deletions hv/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ pub type GPAddr = u64;

bitflags::bitflags! {
/// Guest physical memory region permissions.
pub struct Memory: u32 {
const READ = sys::HV_MEMORY_READ;
const WRITE = sys::HV_MEMORY_WRITE;
const EXEC = sys::HV_MEMORY_EXEC;
pub struct Memory: u64 {
const READ = 1 << 0;
const WRITE = 1 << 1;
const EXEC = 1 << 2;
}
}

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.53"
channel = "stable"
components = ["rustfmt", "clippy"]

0 comments on commit cc0e357

Please sign in to comment.