Jonathan Strong
25ade0806b
fix it so when you run in --dry-mode, it doesn't start publishing crates (!)
1 year ago
Jonathan Strong
c890c5f429
re-generate docs
1 year ago
Jonathan Strong
4c2a9e5fc2
rustfmt
1 year ago
Jonathan Strong
7e9c5ec9bd
silence clippy
1 year ago
Jonathan Strong
2ad520d230
silence clippy
1 year ago
Jonathan Strong
a9c8906096
rustfmt
1 year ago
Jonathan Strong
dd4eb957ad
document `publish`
1 year ago
Jonathan Strong
b717fc952b
clean up code
1 year ago
Jonathan Strong
934559fd41
clean up code, removed unused stuff, etc.
1 year ago
Jonathan Strong
de6c86115b
fix editing of deps in manifest
1 year ago
Jonathan Strong
5d3ea67dfc
first attempt at dealing with conditional keys - correct solution will use toml_edit::visit_mut::VisitMut
1 year ago
Jonathan Strong
9545b350a4
additional logging
1 year ago
Jonathan Strong
24bbd17e82
bugfixes, etc.
1 year ago
Jonathan Strong
1afd7b465f
add check that index-dir exists
1 year ago
Jonathan Strong
4a12c2802c
remove hard-coded crate name filter erroneously left in from debugging
1 year ago
Jonathan Strong
c2f8d60922
working rough cut using publish log csv and cargo publish command
1 year ago
Jonathan Strong
cc275bacb7
hit a bit of a dead end for now
1 year ago
Jonathan Strong
fa147a8ee4
easier solution (?): python script to extract which crates were published in which order from the index repo
1 year ago
Jonathan Strong
7ae5ab55d5
properly handle the server's publish response
1 year ago
Jonathan Strong
b02731ecd6
working first iteration for evaluation
1 year ago
Jonathan Strong
8b57bf70b0
handle errors better in main
1 year ago
Jonathan Strong
315c27b25b
set `dry_run` to `true` in `Config` if passed as command line flag
1 year ago
Jonathan Strong
8bb8d218c7
load .env file vars
1 year ago
Jonathan Strong
3cbe8997a0
begin work on mass publish tool - scoping out how to build publish meta from index meta + Cargo.toml
1 year ago
Jonathan Strong
8a719e7c6c
misc loose ends
...
- tweak release-pre command in justfile to ensure pre-release comes after verify-clean-git
- rustfmt
2 years ago
Jonathan Strong
c28a3c8f87
re-generate docs
2 years ago
Jonathan Strong
3241e2075c
update deps and bump version to v0.4.1
2 years ago
Jonathan Strong
6281152a84
improve error reporting when config toml file fails to parse (still a bit meh)
2 years ago
Jonathan Strong
bd0e3ccda7
impl Default for HttpConfig, so field isn't required in config file
...
these changes allow omitting the http field of the top-level config,
relying on the defaults instead. previously, not having an [http] section
in the config.toml would fail to parse.
2 years ago
Jonathan Strong
86039a16e6
update crate vers in lock file
2 years ago
Jonathan Strong
b8abdd5759
re-generate docs
2 years ago
Jonathan Strong
01ce9284bc
bump version to v0.4.0
2 years ago
Jonathan Strong
41dfff3221
re-generate docs
2 years ago
Jonathan Strong
16d2090bec
fix edge case in output path generation
2 years ago
Jonathan Strong
8bd9d52c30
re-generate docs
2 years ago
Jonathan Strong
1892048654
implement template-based output paths (--output-format)
2 years ago
Jonathan Strong
50017aa456
re-generate docs
2 years ago
Jonathan Strong
7bb2717612
fix output path generation
2 years ago
Jonathan Strong
8a289a592d
re-generate docs
2 years ago
Jonathan Strong
eb111aad33
implement url templates
...
in addition to url templates, this also includes special handling for crates.io:
crates.io index config.json dl: "https://crates.io/api/v1/crates "
request to "https://crates.io/api/v1/crates/{crate}/{vers}/download " will
return a 302 redirect to "https://static.crates.io/crates/{crate}/{crate}-{vers}.crate ".
rather than follow the 302, this detects if the dl value is crates.io (`is_crates_io` method)
and performs the redirect preemptively.
in discussion with crates.io team on discord, @carol10cents indicated this would
avoid need to throttle requests as they would go right to cdn instead of
hitting crates.io webserver.
2 years ago
Jonathan Strong
c61008b560
tweak string syntax to avoid tripping up gitea syntax highlighting
2 years ago
Jonathan Strong
5aa81d5504
fix tr-based search/replace with improved sed-based search-replace
...
old one removed all of the characters in version, wherever they were in the line,
so v0.28.0-rc.1 ended up v0.28.0-c.1
2 years ago
Jonathan Strong
a4a0864f3c
don't set json content-type/accept headers for download requests
...
the response type is NOT json, this was just wrong
2 years ago
Jonathan Strong
4fd262e906
add RUST_LOG=info to examples
2 years ago
Jonathan Strong
51824f0ba6
re-generate docs
2 years ago
Jonathan Strong
b7621e78ac
implements --filter-crates, --dry-run, --overwrite-existing
...
--filter-crates: limit downloads to crates with names matching supplied regex
--dry-run: don't actually download
--overwrite-existing: re-download even if .crate file already exists in output dir
2 years ago
Jonathan Strong
66420e0a38
enable color feature in clap
2 years ago
Jonathan Strong
1898104124
rustfmt
2 years ago
Jonathan Strong
825a99a269
re-generate docs
2 years ago
Jonathan Strong
c3506f9f59
add metadata fields to [package] section in Cargo.toml
2 years ago