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
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
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
16d2090bec
fix edge case in output path generation
2 years ago
Jonathan Strong
1892048654
implement template-based output paths (--output-format)
2 years ago
Jonathan Strong
7bb2717612
fix output path generation
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
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
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
1898104124
rustfmt
2 years ago
Jonathan Strong
c3506f9f59
add metadata fields to [package] section in Cargo.toml
2 years ago
Jonathan Strong
0d4924bb3a
tweak name of unused const
...
just why
2 years ago
Jonathan Strong
af4a102854
remove obe comment
2 years ago
Jonathan Strong
3a8426f172
adds template-based README.md with script to re-generate
2 years ago
Jonathan Strong
a6d6f5a0c3
rustfmt
2 years ago
Jonathan Strong
70dc70dbbb
initial commit
2 years ago