Skip to content

Commit cf3fd00

Browse files
authored
Max/crates io prep v2 (#6270)
* - standardise versions for all nym-sdk workspace dependencies - prepend sqlx-pool-guard with 'nym-' * Test remove nym-api from deps * Add oneliner to client_pool doc comments * Add note to commented out docs.rs link in sdk * remove nym-api from script * add publishing file * bring non-binary / contract / tools into workspace version * added more info to publishing.md * make deps workspace version * remove uploaded sphinx-types crate from script * remove erroueously included ignore-defaults * add zeroise to feature * chore: Release * add topology to batch * more cargo versioning * more cargo versioning - wasm utils * more cargo versioning - wasm utils * Add publish=false to manifest for cargo workspaces / crates.io publishing exclusion * remove script now switched to manifest based exclusion * rename import based on rename of contracts-common dep * Making workspace versions for publication + removing unnecessary crates from publication * Remove OOD info from publishing sdk guide * rename contract imports + remove package * temp commit: continuing with removal of path from cargo manifest and replacing with workspace version import for publication * continuing with cargo.toml updates * dryrun only erroring on known version problem crates * remove old published-crates file * Minor comment change * remove default features warning * Additional info on workspace dep comment re publish list * Add missing description to cargo.toml * Fix missing feature flags * Add missing descriptions * Fix remaining path import * Add workspace repo / homepage / documentation links to cargo.toml files * remove workspace version from excluded crate * Remove todo descriptions * Minor comment change * add homepage etc * move from bls git import to nym_bls_fork crate * Modify rest of imports from path to workspace import, excluding binaries * add directory/homepage info * fix cargo fmt * add notes to gitignore * better solution to contracts/ experiment * wasm -> nym_wasm crate renaming * fix fatfinger * add metadata to ecash cargo.toml * stub publishing guide * fix misrevolved netlink- version * Fixes and block publication of rebase re: LP * first pass @ workflows
1 parent 3831669 commit cf3fd00

File tree

279 files changed

+3272
-2492
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

279 files changed

+3272
-2492
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Publish to crates.io (dry run)
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "Version to publish (e.g. 1.21.0)"
8+
required: true
9+
type: string
10+
11+
jobs:
12+
publish-dry-run:
13+
runs-on: arc-ubuntu-22.04-dind
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v6
17+
18+
- name: Install rust toolchain
19+
uses: actions-rs/toolchain@v1
20+
with:
21+
profile: minimal
22+
toolchain: stable
23+
override: true
24+
25+
- name: Install cargo-workspaces
26+
run: cargo install cargo-workspaces
27+
28+
- name: Bump versions (local only)
29+
run: |
30+
cargo workspaces version ${{ inputs.version }} \
31+
--no-git-commit \
32+
--no-git-tag \
33+
--no-git-push \
34+
--yes
35+
36+
# Note: Dry run may show cascading dependency errors because packages
37+
# aren't actually uploaded. Check if the missing dependency has an
38+
# "aborting upload due to dry run" message earlier in the output - if so,
39+
# it would succeed in a real publish since cargo-workspaces publishes in
40+
# dependency order. cargo-workspaces doesn't fail on err, so there isn't
41+
# a good way to check this at the moment.
42+
- name: Publish (dry run)
43+
run: cargo workspaces publish --from-git --dry-run --allow-dirty
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Publish to crates.io
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "Version to publish (e.g. 1.21.0)"
8+
required: true
9+
type: string
10+
11+
jobs:
12+
publish:
13+
runs-on: arc-ubuntu-22.04-dind
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v6
17+
18+
- name: Install rust toolchain
19+
uses: actions-rs/toolchain@v1
20+
with:
21+
profile: minimal
22+
toolchain: stable
23+
override: true
24+
25+
- name: Install cargo-workspaces
26+
run: cargo install cargo-workspaces
27+
28+
# - name: Configure git
29+
# run: |
30+
# git config user.name "github-actions[bot]"
31+
# git config user.email "github-actions[bot]@users.noreply.github.com"
32+
33+
- name: Bump versions
34+
run: |
35+
cargo workspaces version ${{ inputs.version }} \
36+
--no-git-push \
37+
--no-git-tag \
38+
--yes
39+
40+
- name: Publish
41+
env:
42+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
43+
run: cargo workspaces publish --from-git --no-git-commit
44+
45+
# - name: Push version commit
46+
# run: |
47+
# git push origin HEAD

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,5 @@ docs
7575
.superego/
7676
.claude/hooks/superego/
7777
.claude/settings.json
78+
79+
/notes

0 commit comments

Comments
 (0)