Skip to content

Commit

Permalink
feat(value): Create to_value
Browse files Browse the repository at this point in the history
`to_value` lets any `impl Serialize` convert to a liquid_value::Value.

This can be useful for creating the globals needed for the parser.
  • Loading branch information
epage committed Oct 2, 2018
1 parent 866eb0c commit 61ae6de
Show file tree
Hide file tree
Showing 5 changed files with 660 additions and 3 deletions.
2 changes: 2 additions & 0 deletions liquid-value/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ travis-ci = { repository = "cobalt-org/liquid-rust" }
appveyor = { repository = "johannhof/liquid-rust" }

[dependencies]
num-traits = "0.2"
# Exposed in API
chrono = "0.4"
serde = { version = "1.0", features = ["derive"] }
liquid-error = { version = "0.15.0", path = "../liquid-error" }

[dev-dependencies]
difference = "2.0"
Expand Down
9 changes: 9 additions & 0 deletions liquid-value/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,20 @@
#[macro_use]
extern crate serde;
extern crate chrono;
extern crate liquid_error;
extern crate num_traits;

mod index;
mod scalar;
mod ser;
mod values;

/// Liquid Processing Errors.
pub mod error {
pub use liquid_error::*;
}

pub use index::*;
pub use scalar::*;
pub use ser::*;
pub use values::*;
Loading

0 comments on commit 61ae6de

Please sign in to comment.