- Add Serialize and Deserialize Support
- Requires the serde feature to be enabled.
- Add support to Mechanism
exist
for Macro Expansion. Strings starting with%
will now be matched. Support contributed by 22ca54d00f05391d6ffee4bc23a5ba60
- Remove code which has been deprecated since 0.2.0
- Implement
strict-dns
feature- Use crate
addr
to validate domain information fora
,mx
,ptr
,include
, andexists
- See:
examples/build-spf-strict.rs
- Use crate
- Deprecate
Mechanism::new_
functions. - Breaking Change: Rename some
MechanismError::
messages.
- Add
#[cfg(feature = warn-dns)]
to code documentation to remove warnings and errors when feature is not enabled.
- Add Feature (warn-dns)
With this feature enabled any malformed DNS records will causehas_warnings()
to be set totrue
. Their values can then be accessed usingwarnings()
. Even though they are invalid. No error will be generated.
- Documentation Update
- as_spf() removed. Replaced with a Display trait. Use
to_string()
- .parse() removed. Replaced with FromStr trait. Use
parse::<Spf>()
- Bump Version to 0.2.0
- Add this CHANGELOG.md file.
- Complete re-orginisation of the crate's module layout.
- Note that spf::{qualifier::Qualifier, kinds::MechanismKind, mechanism::Mechanism} no longer exist. These can now be accessed more simply as:
- mechanism::{Qualifer, Kind, Mechanism}
- Note that spf::{qualifier::Qualifier, kinds::MechanismKind, mechanism::Mechanism} no longer exist. These can now be accessed more simply as:
- Correct license reference to correctly show as MIT license
- Introduced ability to build SPF records programmatically.
- See examples/build-new-spf.rs
- Implemented Display trait for structs Spf and Mechanism
- This also depreciates the previously implemented as_spf() and string() methods.
- implemented FromStr trait for Struct Spf
- Implemented Errors for
Mechanism
- Improved regular expressions to handle more strings when parsing.