version 0.3.32 trying to think if i've ever seen a higher patch component
i would normally assume that allowing any version < 1 would be safe, but that patch version makes me nervous. what if they use minor like a major version
of course it's in the rust-lang org
the readme links to a version of spack-rs which does not use spack https://github.com/gdesmott/system-deps if i make this library work without identifying new reasons to despise cargo and the rust ecosystem then i will make an issue so we can unify the approaches
i'm gonna be super annoying about cargo not deduplicating builds though. fucking hate how one-way it is
wow the system-deps crate actually bumps the major version!!!! it's v7.0.5!!!! it's a fucking miracle!!!!!
ok i will almost definitely try to collab with them then
now i'm really upset because there's a reason to support building it by hand which is to avoid breaking any dependency graph which transitively depends on the -sys crate. but that's ONLY to avoid breaking the build so i'm NOT doing any fucking optimizations or selecting the version or plumbing any feature flags into the build you get a zero effort build process so this doesn't break someone else's build because i have STANDARDS
now i remember the issue i was having where the "low-level" http libraries unconditionally pull in an entire async executor
cargo should REALLY have a fucking API for fetching checksummed remote resources. represent that shit in the dependency graph. stuff that shit in the SBOM if you're into that. obviously selecting declaratively based on platform and version would be great but please. my kingdom for a cargo:: module available to build scripts
anyway i'm using the curl wrapper crate
love having to build an entire build system and package manager from scratch in every build script
no clue why the curl wrapper crate defaults to openssl when it has rustls available. idk anything about rustls but openssl is a walking talking vulnerability dispenser
see this is the shit i can't stand https://github.com/alexcrichton/curl-rust/blob/4591a9a35fde7968e0a5fbbb8479ba17369a356b/curl-sys/build.rs#L532-L533
// Not all system builds of libcurl have http2 features enabled, so if we've
// got a http2-requested build then we may fall back to a build from source.
there's not even a feature flag for building from source, it just might mysteriously start building its own version depending upon a variable which isn't reflected in the dep graph because every build script has to do feature detection from scratch. the http2 feature was already confusing enough
i think i should probably just do a submodule instead of all this. cargo continues to use git as a package manager
we solved this in spack btw https://github.com/rust-lang/cargo/issues/7987
cargo does not in fact understand internal submodules and curl-sys is calling git submodule --init by hand which the cargo docs say will be rejected upon package publish but i guess they don't actually check that at all
so we WILL be depending on curl to pull down a checksummed tarball so we can avoid breaking other builds
because i'm a NICE FUCKING PERSON
and yes of course the curl wrapper crate is a v0
Note that Rustls support is experimental within Curl itself and may have significant bugs, so we don't offer any sort of stability guarantee with this feature.
hell yeah
why on earth doesn't cargo have a way to list out the contributions to a package's checksum?
and also rerun-if-* is a needlessly recursive API--this is exactly the thing build systems a la carte was complaining about. the way pants solved it is by distinguishing internal (potentially-recursive) deps from arguments to a rule, where recursive deps invoke a coroutine through an async def method
and of course there are many more types of resources you might want to fetch than just other rust packages so having cargo fetch only work for rust sources is really silly
@hipsterelectron It fetches the `.crate` file (which is just `.tar.gz`), that can include other resources too, not just source files.
@hipsterelectron kernel 5.4 is up to 300
you see, rust is so efficient that it can use larger patch numbers, than ever before,