Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ jobs:
- uses: actions/cache@v3
id: cache-cargo-fetch
with:
key: ${{ runner.os }}-cargo-fetch-${{ hashFiles('Cargo.lock') }}
path: target
restore-keys: ${{ runner.os }}-cargo-fetch
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Fetch Dependencies
if: steps.cache-cargo-fetch.outputs.cache-hit != 'true'
run: cargo fetch
Expand Down
1 change: 1 addition & 0 deletions src/gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pub struct FlakeGen {
const NODE_BITS: usize = 48;
const SEQ_BITS: usize = 16;

/// TEST!
impl FlakeGen {
/// Create a new flake ID generator with the given `node_id` as the unique identifier for this
/// generator of Flake IDs.
Expand Down