diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index fd3ccc4..0695178 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 diff --git a/src/gen.rs b/src/gen.rs index 9accbf4..97ace09 100644 --- a/src/gen.rs +++ b/src/gen.rs @@ -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.