Closed 3rror404 closed 2 years ago
Agree, better put serde / serde_json at 1.0 and let bug fixes happen from time to time. Of course I would update just after a release rather than before, but it's the same idea.
Thanks guys. My understanding was that only the left most number is pegged. So using 1.0.136 would allow any versions >=1.0.136 & < 2.0.0. Am I reading this incorrectly?
The string "0.1.12" is a version requirement. Although it looks like a specific version of the time crate, it actually specifies a range of versions and allows SemVer compatible updates. An update is allowed if the new version number does not modify the left-most non-zero digit in the major, minor, patch grouping
Interesting, didn't know this, this doesn't look very intuitive :-) But maybe still better to just use 1.0, unless you need at least 1.0.136.
Just testing now. I don't think 1.0.136 is necessary - I only used that version because it was used in the snippet on crates.io.
Out of curiosity, cargo does use some unintuitive SemVer ranges. The one we grow to expect would be the tilde requirements which is not much used. There are special cases for "0.x.x" versions, which are deemed not stable yet, and also for "1.x.x" ones.
Allows some or all of the ann miner settings to be loaded via a JSON file.
Provide either a path to a local file or a URL to a web-accessible file/API in the
--config
CLI argument.Or
A config.json file can be generated here for testing: https://config.pkt.watch
I’m a Rust novice. I’m not 100% confident with the code. So feel free to point out anything that looks poor/wrong and I’ll try to fix it.