- Enhanced macros for the creation of
RustType
instances - PR #37 - Expose
fragment_helpers
module - PR #38 - Define
JsonTypeToString
trait and ensure thatJsonType
type need to beJsonTypeToString
types as well - PR #41
- Use specialization to have default implementation for JsonMap such tht trait constraints would not be required - PR #33
- Update
json_trait_rs::json_type::JsonType
trait to remove generic type from trait and to update trait hierarchy to shorten trait usage - PR #31
WARNING: This reduces the Into<RustType>
guarantee (even if we manually guarantee it) and ToRustType does still provide access point to a similar feature
- Implement
json_trait_rs::JsonType::to_rust_type
(similar toInto<RustType>
but from a reference)
json_trait_rs::JsonType::as_array
returnsExactSizeIterator
- PR #24- Improve
json_trait_rs::RustType
definition to store floats as well - PR #26 json_trait_rs::JsonType
must implementInto<json_trait_rs::RustType>
- PR #26- Rename
json_trait_rs::EnumJsonType
intojson_trait_rs::PrimitiveType
and implementTryFrom<&str>
,Into<&str>
,Hash
andDebug
- PR #26 - Define
json_trait_rs::Error
to collect all the errors that the crate might report (based onfailure
crate) - PR #26
- Relax
JsonType
to not be thread safe and defineThreadSafeJsonType
to provide the thread safe version - PR #22
- Reduce usage of
#[inline]
and ensure that method results are used via#[must_use]
- PR #17
-
Replace
test-crate-derive
withtest-crate
- PR #14There are no API and/or feature changes respect previous changes, but as non-test code was modified I've releaesed a new version ;)
-
Ensure that
json_trait_rs::JsonType
traits can be made into object (ie.Box<dyn JsonType<_>>
) - PR #6WARNING this required:
-
change in the
json_trait_rs::JsonType
definition as now needsSelf
to be specified (JsonType<Self>
) -
removal of
json_trait_rs::JsonType::get
method to extract array item or attribute value -
removal of
json_trait_rs::JsonType::fragment
.The functionality has been migrated into
json_trait_rs::get_fragment
-
-
Implement
json_trait_rs::JsonType
trait forpyo3::types::PyAny
- PR #9 -
Cleanup
json_trait_rs::JsonMapTrait
implementation forjson::JsonValue
(trait_json
feature) - PR #11 -
Rename macros:
testing_map
intorust_type_map
andtesting_vec
intorust_type_vec
- PR #5 -
Enable tests execution on rust stable, simplify coverage instrumentation and run on OS X and Windows - PR #4, PR #10 and PR #13
- Export macros and rename
json_trait_rs::TestingType
intojson_trait_rs::RustType
- PR #3
- Consider private internal modules and expose, in the top level, the important structs, enum and traits - PR #1
- Simplify
json_trait_rs::JsonType
signature (remove lifetime andjson_trait_rs::JsonMap
constraint from the class) - PR #1
- Initial project release
- Definition of
JsonType
trait - Implementation of trait for
json::JsonValue
,serde_json::Value
andserde_yaml::Value
.