This is a pure-Rust crate for parsing/formatting Python literals. See the documentation for more information.
This crate is a work-in-progress. The goal is for the parser to support
everything ast.literal_eval() does, but it supports only a subset. See the
docs for the FromStr implementation for Value for details.
-
0.4.0
- Updated
num-bigintandnum-complexdependencies to0.4.
- Updated
-
0.3.0
- Updated
num-bigintandnum-complexdependencies to0.3. - Disabled default features of
num-complexandnum-traitsdependencies. - Disabled
stdfeature ofnum-bigintdependency. - Bumped required Rust version to 1.42.
- Updated
-
0.2.2
- Updated
pestandpest_derivedependencies to2.0, by @nagisa.
- Updated
-
0.2.1
- Added
.is_*()and.as_*()methods toValue. - Updated to the new style of
Error. (Implementedsource, and removed the non-default implementations ofdescriptionandcause.) - Bumped required Rust version to 1.33.
- Added
-
0.2.0
- Updated
num-*dependencies to 0.2. - Switched from depending on all of
numto depending on the individualnum-*crates.
- Updated
-
0.1.1
- Improved crate metadata and documentation (no functional changes).
-
0.1.0
- Initial release.
Please feel free to create issues and submit PRs. PRs adding more tests would be especially appreciated.
Copyright 2018–2021 Jim Turner and py_literal developers
Licensed under the Apache License, Version 2.0, or the MIT license, at your option. You may not use this project except in compliance with those terms.