Skip to content

Commit

Permalink
feat!: v0.4.0 rewrite (#202)
Browse files Browse the repository at this point in the history
* refactor!: v0.4.0 main rewrite (#150)

0.4.0 rewrite, more modular more awesome thanks to @beeb

* docs(core): document `auth` and `config` modules (#175)

* docs(core): document `auth` and `config` modules

* ci: add doctests

* feat: format multiline remappings array (#174)

* docs(core): add documentation (#177)

* docs(core): document `auth` and `config` modules

* ci: add doctests

* refactor(core): move integrity checksum type to utils

* docs(core): download module

* docs(core): download module

* docs(core): add documentation

* docs(core): add docs

* docs(core): typo

* docs(core): rephrase

* docs(core): install

* docs(core): typo

* docs(core): add documentation (#178)

* docs(core): document `auth` and `config` modules

* ci: add doctests

* refactor(core): move integrity checksum type to utils

* docs(core): download module

* docs(core): download module

* docs(core): add documentation

* docs(core): add docs

* docs(core): typo

* docs(core): rephrase

* docs(core): install

* docs(core): typo

* docs(core): install mod

* docs(core): lock module

* docs(core): various

* refactor(commands): move push zip file path logging to commands crate

* docs(core): push mod

* fix(core): missing import

* docs(core): registry

* docs(core): add missing item

* docs(core): update and utils modules (#179)



* docs(core): remappings

* docs(core): update

* docs(core): utils

* test(commands): init integration tests (#180)

* test(commands): init integration tests

* refactor!: minor refactor and integration tests (#186)

* refactor(commands)!: rename `Subcommands` to `Command`

* test(commands): add integration tests for install command

* refactor(core)!: zip download path clarification

The zip is now downloaded inside the folder indicated by the argument to `download_file` and the filename can be chosen by the caller.

* test(commands): add integration test (install/uninstall) (#190)

* test(commands): add integration tests for uninstall

* test(commands): add integration test for config in foundry file

* test(commands): add test for remappings in foundry file

* test(commands): add uninstall test with foundry config

* feat(core): improve remappings matching (#191)

* feat(core): improve remappings matching

Existing remappings can now be kept even during an update which changes the version string of the dependency folder.

* fix(core): remappings rewriting on windows

* fix(core): updating git dependencies (#192)

* feat(core): improve remappings matching

Existing remappings can now be kept even during an update which changes the version string of the dependency folder.

* fix(core): updating git dependencies

Updating git dependencies which should follow a branch did not work because we check out a given commit. This has been fixed.

* fix(commands): update libs in foundry config during init (#193)

* "Lock-free syncronization, parallelize cpu bound tasks, add rayon"

* "Clippy and +nightly fmt"

* "Remove superfluous thread"

* refactor: remove all unwraps (#194)

* ci: speed up test by using cargo-nextest (#196)

* "Remove parallelism for smaller iters, remove extra Arcs, better iter chaining"

* "+nightly fmt"

* "Add suggestions, fix imports, remove excess parallelism"

* "Missed one"

* "Fix Formatting"

* style: add empty line

Signed-off-by: Valentin B. <[email protected]>

* perf: remove par_iter

* feat(cli): add banner (#199)

* (Ehancement) Add Banner
- Display banner with useful information

* Update crates/cli/src/main.rs

Signing off , since there is no action i need to perform

Co-authored-by: Valentin B. <[email protected]>
Signed-off-by: xyizko <[email protected]>

---------

Signed-off-by: xyizko <[email protected]>
Co-authored-by: Valentin B. <[email protected]>

* refactor: use new syntax for bon builders (#200)

* chore: add nextest config (#201)

* test(commands): integration tests for push (#197)

* test(commands): integration tests for push

* chore: remove file

* test(commands): add integration tests

* test(commands): add integration test

* test(commands): add assert

* fix(core): `path_matches` semver comparison (#205)

This function should only attempt to match a version to a version requirement if both can be parsed
Also added extra tests

* fix(cli): respect environment and tty preference for color (#206)

* fix(commands): only build Paths when needed

* test(commands): fix tests when run with `cargo test` (#207)

The tests for the `push` command were changing the current directory
which lead to race conditions when run with `cargo test`.
`cargo-nextest` does not seem to suffer from this.

---------

Signed-off-by: Valentin B. <[email protected]>
Signed-off-by: xyizko <[email protected]>
Co-authored-by: crypdoughdoteth <[email protected]>
Co-authored-by: xyizko <[email protected]>
  • Loading branch information
3 people authored Oct 7, 2024
1 parent 1999e95 commit 6dd0d97
Show file tree
Hide file tree
Showing 52 changed files with 8,593 additions and 7,523 deletions.
4 changes: 4 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[profile.default]
retries = { backoff = "exponential", count = 2, delay = "2s", jitter = true }
slow-timeout = { period = "1m", terminate-after = 3 }
fail-fast = false
26 changes: 20 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,37 @@ name: Rust

on:
push:
branches: ["main"]
branches: ['main']
pull_request:
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
build-test:
strategy:
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@nextest
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Run tests
run: cargo test
run: cargo nextest run

doctests:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo test --workspace --doc

feature-checks:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -59,7 +73,7 @@ jobs:
cache-on-failure: true
- run: cargo doc --workspace --all-features --no-deps --document-private-items
env:
RUSTDOCFLAGS: "--cfg docsrs -D warnings"
RUSTDOCFLAGS: '--cfg docsrs -D warnings'

fmt:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"rust-analyzer.rustfmt.extraArgs": ["+nightly"],
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer"
}
},
"rust-analyzer.cargo.features": "all"
}
Loading

0 comments on commit 6dd0d97

Please sign in to comment.