#set-theory #set

no-std zfc

Trait that represents a set according to Zermelo–Fraenkel set theory with the axiom of choice (ZFC)

14 releases

Uses new Rust 2024

0.4.7 Mar 18, 2026
0.4.6 Nov 22, 2025
0.4.4 Aug 26, 2025
0.4.3 Jun 23, 2025
0.3.1 Oct 18, 2023

#698 in Math


Used in 2 crates

MIT/Apache

39KB
691 lines

zfc

git crates.io docs.rs

zfc is a library for sets according to Zermelo–Fraenkel set theory with the axiom of choice (ZFC).

Minimum Supported Rust Version (MSRV)

This will frequently be updated to be the same as stable. Specifically, any time stable is updated and that update has "useful" features or compilation no longer succeeds (e.g., due to new compiler lints), then MSRV will be updated.

MSRV changes will correspond to a SemVer patch version bump pre-1.0.0; otherwise a minor version bump.

SemVer Policy

  • All on-by-default features of this library are covered by SemVer
  • MSRV is considered exempt from SemVer as noted above

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Before any PR is sent, cargo clippy --all-targets, cargo test --all-targets, and cargo test --doc should be run for each possible combination of "features" using the stable and MSRV toolchains. One easy way to achieve this is by invoking ci-cargo as ci-cargo clippy --all-targets test --all-targets in the zfc directory.

Last, RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features should be run to ensure documentation can be built.

Status

The crate is only tested on the x86_64-unknown-linux-gnu, x86_64-unknown-openbsd, and aarch64-apple-darwin targets; but it should work on most platforms.

Dependencies

~460KB