Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ValueRange type #53

Merged
merged 8 commits into from
Jun 19, 2023
14 changes: 7 additions & 7 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.65.0
toolchain: 1.70.0
target: wasm32-unknown-unknown
override: true

Expand All @@ -28,7 +28,7 @@ jobs:
- name: Run build
uses: actions-rs/cargo@v1
with:
toolchain: 1.65.0
toolchain: 1.70.0
command: build
args: --workspace
env:
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Run tests
uses: actions-rs/cargo@v1
with:
toolchain: 1.65.0
toolchain: 1.70.0
command: test
args: --workspace
env:
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Compile WASM contract
uses: actions-rs/cargo@v1
with:
toolchain: 1.65.0
toolchain: 1.70.0
command: wasm
env:
RUSTFLAGS: "-C link-arg=-s"
Expand All @@ -62,7 +62,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.65.0
toolchain: 1.70.0
override: true
components: rustfmt, clippy

Expand All @@ -74,13 +74,13 @@ jobs:
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
toolchain: 1.65.0
toolchain: 1.70.0
command: fmt
args: --all -- --check

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
toolchain: 1.65.0
toolchain: 1.70.0
command: clippy
args: --all-targets -- -D warnings
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.65.0
toolchain: 1.70.0
target: wasm32-unknown-unknown
override: true

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ schema/
schemas/

.DS_Store
.vscode
.idea

node_modules
2 changes: 2 additions & 0 deletions packages/sync/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
mod locks;
mod range;

pub use locks::{LockError, LockState, Lockable};
pub use range::{max_range, min_range, spread, RangeError, ValueRange};
Loading