proptest
serde
proptest | serde | |
---|---|---|
16 | 200 | |
1,898 | 9,813 | |
0.9% | 1.0% | |
7.8 | 8.7 | |
26 days ago | about 1 month ago | |
Rust | Rust | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
proptest
-
Proptest: property testing in Rust
In this post, I will tell you how I used property testing with the Proptest library in Rust to ensure the correctness of a bunch of generated serialization/deserialization code for the Apache Kafka protocol.
-
What Are The Rust Crates You Use In Almost Every Project That They Are Practically An Extension of The Standard Library?
proptest: Property-based testing with random input generation.
-
Iterating on Testing in Rust
Isn't proptest something that could handle this?
https://github.com/proptest-rs/proptest
-
Proptest strategies the hard way
Proptest is a Rust crate for property-based testing. Recently I wanted/needed to manually implement a proptest strategy for my own type, and I realized that there is not that much material on how to do it. So I wrote a post where I tried to describe what I learned. It's a bit niche, but I hope that someone at some point will find it useful.
-
Generating combinatorial test cases
Take a look at proptest.
-
How to express Contracts in Rust?
Yes exactly, you can also add to this fuzzing and property based testing.
-
The birth of a package manager [written in Rust :)]
proptest is great! It generates random input data according to some rules, and if the input fails it saves random seed into a file so that failing inputs are guaranteed to be tested on the subsequent runs (as well as new random inputs). It also doesn't immediately stop on fail but tries to find a minimal failing input first.
-
Hey Rustaceans! Got a question? Ask here (11/2023)!
The only other crate I could find is proptest, but it looks a lot more complicated, and I don't know if lets you skip the shrinking step as quickcheck does. I've been reading the book and going through the docs, but a quick answer would be appreciated.
-
Announcing Proptest 1.1.0
We just released proptest 1.1.0, a property-testing framework for Rust. Proptest has recently found new maintainers, and this marks the first new release of proptest in ~2 years.
-
Hey Rustaceans! Got a question? Ask here! (32/2022)!
Hi, I'm working on a fuzzer, that fuzzes APIs based on OpenAPI specification. I'd like to implement shrinking. It means that when an interesting input (for the API) is found, I'd like to create the smallest possible input that still causes the same behaviour of the API. I'd like to implement a payload generation via proptest, because it already has the shrinking ability. I'm having issues implementing the JSON object as a proptest strategy. Here is what I tried so far. I explained it in a detail in stackoverflow question but it did not reach many people. Thanks for your help!
serde
-
Serde Integration With the MongoDB Rust Driver
We just scratched the surface of what is possible with Rust, MongoDB, and Serde today. Just as a quick reminder, great documentation exists for the MongoDB crate, Serde, and actix-web.
-
A 20 year old bug in GTA San Andreas surfaced in Windows 11 24H2
You misunderstood. Game developers should use a _good_ third–party library, not a _bad_ one. At a minimum they should be able to read the source code so that they know it is good. Thus open source libraries should be at the top of the list.
If you don't know what “good” looks like, take a look at [Serde](https://serde.rs/). It’s for Rust, but its features and overall design are something you should attempt to approach no matter what language you’re writing in.
-
Is Rust a good fit for business apps?
We have written our own http server framework focused on openapi support: https://docs.rs/dropshot/latest/dropshot/
https://serde.rs/ is the serialization/deserialization framework in Rust, and is well supported in the ecosystem.
We also wrote https://github.com/oxidecomputer/oxide.ts to generate TypeScript clients from the OpenAPI.
We mostly use react-router (or remix for older things that haven't been upgraded yet).
So the way that it works is, you define your api in dropshot. You ask it to generate an openapi document. You run this on that document to get a typescript client. And then you use that client in your react-router application.
I'm personally using it in the "framework" mode, so I have a "backend for frontend" going on, but the main appliccation is using it purely on the client, served from the same server as that API. Both have pros and cons.
-
Rusty Backends
If the request parameter cannot be parsed, the appropriate response code is sent instead of calling the function, so we have the usual comfort of type safety. Request bodies are handled very similarly, and of course, parsing integrates seamlessly with serde.
-
2024 In Review
lack of finished solutions for serde (default values, partial initialization)
-
Build Lightning-Fast Data Processing in Rust: From Single Thread to Parallel Performance
Serde Crate
-
Using Polars in Rust for high-performance data analysis
We’ll use Axum with Tokio to build a web backend, Tracing for logging, and Serde for serialization and deserialization.
-
Comfy, the 2D rust game engine, is now archived
On the flip side of this, when libraries in rust do reach 1.0, they often are just done. The serialization/deserialization library serde which has become the de-facto standard has been on 1.0.xxx for the past seven years. https://crates.io/crates/serde/versions
I think this speaks to rust's strengths in that if you know your spec, you can write a rock-solid version of it - and its weakness, where if you don't know your spec you'll be making breaking changes a lot.
- Scan HTML even faster with SIMD instructions (C++ and C#)
-
Empowering Web Privacy with Rust: Building a Decentralized Identity Management System
Serde Documentation: Comprehensive guide and reference for using Serde, Rust's framework for serializing and deserializing data.
What are some alternatives?
quickcheck - Automated property based testing for Rust (with shrinking).
bincode - A binary encoder / decoder implementation in Rust.
afl.rs - 🐇 Fuzzing Rust code with American Fuzzy Lop
msgpack-rust - MessagePack implementation for Rust / msgpack.org[Rust]
trust - Travis CI and AppVeyor template to test your Rust crate on 5 architectures and publish binary releases of it for Linux, macOS and Windows
json-rust - JSON implementation in Rust