Skip to content

Commit

Permalink
use cargo-http-registry as library in crates-io
Browse files Browse the repository at this point in the history
  • Loading branch information
StackOverflowExcept1on committed Aug 13, 2024
1 parent 9b3c3ac commit 03e03bc
Show file tree
Hide file tree
Showing 11 changed files with 374 additions and 54 deletions.
6 changes: 0 additions & 6 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
[alias]
gbuild = "run -p cargo-gbuild --"

[registries]
my-registry = { index = "http://127.0.0.1:35503/git" }

[net]
git-fetch-with-cli = true
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ jobs:
cargo +stable check --manifest-path utils/wasm-builder/test-program/Cargo.toml
cargo +stable check --manifest-path utils/cargo-gbuild/test-program/Cargo.toml --workspace --target wasm32-unknown-unknown
- name: "Check: crates-io packages"
run: cargo +stable run --release -p crates-io check
- name: "Check: crates-io packages publishing"
run: cargo +stable run --release -p crates-io publish --simulate

fuzzer:
runs-on: [kuberunner, github-runner-01]
Expand Down
209 changes: 205 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ demo-wat = { path = "examples/wat" }
# TODO: remove these dependencies (from this file?) or add more docs.

cfg-if = "1.0.0" # gear-lazy-pages
cargo-http-registry = "0.1.5" # crates-io
errno = "0.3" # gear-lazy-pages
nix = "0.26.4" # gear-lazy-pages
indexmap = "2.2.6" # utils/weight-diff
Expand Down
3 changes: 3 additions & 0 deletions utils/crates-io/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ edition.workspace = true

[dependencies]
anyhow.workspace = true
cargo-http-registry.workspace = true
cargo_metadata.workspace = true
clap = { workspace = true, features = ["derive"] }
serde = { workspace = true, features = ["derive"] }
reqwest = { workspace = true, features = ["blocking", "json", "default-tls"] }
tempfile.workspace = true
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
toml_edit.workspace = true
Loading

0 comments on commit 03e03bc

Please sign in to comment.