docs: crate features

This commit is contained in:
PoiScript 2019-06-28 14:29:45 +08:00
parent 727c9f14f7
commit e33bb22fde
2 changed files with 24 additions and 0 deletions

View file

@ -173,6 +173,16 @@ println!("{}", to_string(&org).unwrap());
// } // }
``` ```
## Features
By now, orgize provides three features:
+ `serde`: adds the ability to serialize `Org` and other elements using `serde`, enabled by default.
+ `extra-serde-info`: includes the position information while serializing, disabled by default.
+ `chrono`: adds the ability to convert `Datetime` into `chrono` struct, disabled by default.
## License ## License
MIT MIT

View file

@ -215,6 +215,20 @@
//! // }] //! // }]
//! // } //! // }
//! ``` //! ```
//!
//! # Features
//!
//! By now, orgize provides three features:
//!
//! + `serde`: adds the ability to serialize `Org` and other elements using `serde`, enabled by default.
//!
//! + `extra-serde-info`: includes the position information while serializing, disabled by default.
//!
//! + `chrono`: adds the ability to convert `Datetime` into `chrono` struct, disabled by default.
//!
//! # License
//!
//! MIT
pub mod elements; pub mod elements;
pub mod export; pub mod export;