Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I'm trying to fix the two test failures in the current master of the Rust Cookbook related to the API change of the rand crate. It went from accepting a couple numbers (in 0.5.6) to a Range instead (in 0.8.0).
From what I can tell skeptic is doing some magic by allowing the project to build all of the dependencies and then directly calling the generated tests with those pre-built dependencies instead of having to build them individually for each test. I can imagine that this has a significant effect on the time it takes to run. I don't think the issue is not checking the Cargo.lock because the source shows that it does. Where it seems to be failing is picking the correct rlib file but I am not familiar enough to know if it is possible to reliably fix that.
I'm not sure exactly what you're requesting, but maybe nom_locate can help.
Actually, I think I have found exactly what I want: Tango: Literate Programming In Rust github. It can convert Rust code to Markdown and vice versa. This should make it easy to just display the most relevant bits of code in the Markdown, while hiding the rest in the generated book.
Related posts
- Measuring startup and shutdown overhead of several code interpreters
- Say good bye to cd and hello Zoxide - the better and smarter cd command
- Faster tetranucleotide (k-mer) frequencies!
- You might want to replace cd command with Zoxide 🎉 — a smarter and trainable cd alternative 🗂️
- Argc: Easily create feature-rich CLIs in bash