4 releases
new 0.3.2 | Dec 7, 2024 |
---|---|
0.2.7 | Apr 28, 2024 |
0.2.6 |
|
0.2.5 |
|
0.1.0 |
|
#1130 in Network programming
422 downloads per month
215KB
5K
SLoC
Overview
This crate allows you to deconstruct an existing SPF record that might be retrieved with a dns query of type TXT.
With 0.2.0. You now have the ability to create SPF records programmatically. Check the Examples directory for sample code.
See Example Code
Lookup and deconstruct Spf record.
Run example
To see a list of available examples.
$ cargo run --example
$ cargo run --example trust-dns-builder
$ cargo run --example trust-dns-spf
$ cargo run --example build-spf
$ cargo run -F strict-dns --example build-spf-strict
$ cargo run -F serde --example serde-demo
Syntax Validation
Whilst this crate is not intended to provide syntax validation, some validation has been added as
of Version 0.3.0.
If you are looking to validate your SPF record. I would suggest you use one of
the following:
I am sure there are many others that could be found.
Dependencies
~2.6–4MB
~83K SLoC