-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added basic project config files and placeholder module
- Loading branch information
Showing
4 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
env: | ||
RUST_BACKTRACE: 1 | ||
|
||
jobs: | ||
basic-checks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: cargo check | ||
- run: > | ||
rustup component add rustfmt && | ||
cargo fmt --all --check | ||
- run: > | ||
rustup component add clippy && | ||
cargo clippy --all-targets --all-features -- -D warnings | ||
run-tests-with-miri: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: rustup +nightly component add miri | ||
- run: cargo +nightly miri test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/.idea | ||
/target | ||
|
||
Cargo.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[package] | ||
name = "aarc" | ||
version = "0.0.1" | ||
edition = "2021" | ||
description = "Atomically updatable variants of Arc and Weak for lock-free concurrency." | ||
homepage = "https://github.com/aarc-rs/aarc" | ||
repository = "https://github.com/aarc-rs/aarc" | ||
license = "MIT" | ||
keywords = ["atomic", "arc", "thread-safe", "sync", "lock-free"] | ||
categories = ["concurrency", "memory-management", "data-structures", "algorithms"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
pub mod example1 { | ||
/// The quick brown fox jumps over the lazy dog. | ||
/// # Examples: | ||
/// ``` | ||
/// assert!(true); | ||
/// ``` | ||
pub fn say_hello() { | ||
println!("hello world!"); | ||
} | ||
} | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
#[test] | ||
fn test1() { | ||
assert_eq!(1, 1); | ||
} | ||
} |