Skip to content

Commit

Permalink
Merge pull request #1 from AaronKutch/dev
Browse files Browse the repository at this point in the history
stage 1
  • Loading branch information
AaronKutch authored Dec 5, 2023
2 parents 48b5135 + 147b5c9 commit da248d5
Show file tree
Hide file tree
Showing 39 changed files with 7,808 additions and 14 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Starlight CI

on: [pull_request]

env:
RUST_BACKTRACE: 1

jobs:
test_suite:
name: Test suite
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v2
- name: Install Rust components
run: |
rustup set profile minimal
rustup default nightly
- name: Run test suite
run: |
cargo doc --all-features
cargo test --all-features
cargo test --release --all-features
cargo bench
msrv_test_suite:
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v2
- name: Install Rust components
run: |
rustup set profile minimal
rustup install nightly-2023-04-14
- name: Run test suite
run: |
cd ./starlight && cargo build --no-default-features
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Acquire the most recent nightly with a rustfmt component
- name: Install most recent Rustfmt
run: |
rustup set profile minimal
rustup default "nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/rustfmt)"
rustup component add rustfmt
- name: Run `cargo fmt`
run: |
cargo fmt -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Acquire the most recent nightly with a clippy component
- name: Install most recent Clippy
run: |
rustup set profile minimal
rustup default "nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/clippy)"
rustup component add clippy
- name: Run `cargo clippy`
run: |
cargo clippy --all --all-targets --all-features -- -D clippy::all
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/target
/Cargo.lock
ensemble.svg
states.svg
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Changelog

## [0.1.0] - TODO
## [0.1.0] - 2023-12-05
### Crate
- `awint` 0.14

### Additions
- Initial release with `Epoch`, `LazyAwi`, `LazyInlAwi`, and `EvalAwi`. Lowering of all mimicking
operations to LUTs and evaluation is fully working.
20 changes: 7 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
[package]
name = "starlight"
version = "0.0.0"
edition = "2021"
authors = ["Aaron Kutch <[email protected]>"]
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/AaronKutch/starlight"
documentation = "https://docs.rs/starlight"
description = "reservation"
keywords = []
categories = []
[workspace]
resolver = "2"
members = [
"starlight",
"testcrate",
]

[dependencies]
[patch.crates-io]
Empty file removed src/lib.rs
Empty file.
1 change: 1 addition & 0 deletions starlight/CHANGELOG.md
30 changes: 30 additions & 0 deletions starlight/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[package]
name = "starlight"
version = "0.1.0"
edition = "2021"
authors = ["Aaron Kutch <[email protected]>"]
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/AaronKutch/starlight"
documentation = "https://docs.rs/starlight"
description = "reservation"
keywords = []
categories = []

[dependencies]
#awint = { path = "../../awint/awint", default-features = false, features = ["rand_support", "dag"] }
awint = { version = "0.14", default-features = false, features = ["rand_support", "dag"] }
rand_xoshiro = { version = "0.6", default-features = false }

[features]
# note: "dag", "rand_support", and "std" are all turned on always
default = ["try_support"]
# Turns on nightly features required for some functions to be marked `const`
#const_support = ["awint/const_support"] # TODO
# Turns on nightly features required for `Try` to work with some mimick types
try_support = ["awint/try_support"]
# Turns on `serde` support
serde_support = ["awint/serde_support"]
# Turns on `zeroize` support
zeroize_support = ["awint/zeroize_support"]
debug = ["awint/debug"]
1 change: 1 addition & 0 deletions starlight/LICENSE-APACHE
1 change: 1 addition & 0 deletions starlight/LICENSE-MIT
1 change: 1 addition & 0 deletions starlight/README.md
9 changes: 9 additions & 0 deletions starlight/src/awi_structs.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pub mod epoch;
mod eval_awi;
mod lazy_awi;
mod temporal;

pub use epoch::{Assertions, Epoch};
pub use eval_awi::EvalAwi;
pub use lazy_awi::{LazyAwi, LazyInlAwi};
pub use temporal::{Loop, LoopHandle, Net};
Loading

0 comments on commit da248d5

Please sign in to comment.