Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.12.0 #164

Merged
merged 1 commit into from
Sep 6, 2019
Merged

v0.12.0 #164

merged 1 commit into from
Sep 6, 2019

Conversation

maciejhirsz
Copy link
Owner

  • Updated to edition 2018.
  • Simplified reading escaped unicode in strings a bit.
  • Provided From<&[T]> implementation for JsonValue where T: Into<JsonValue> (closes cannot borrow variables in object! #160).
  • object! and array! macros will no longer re-allocate (closes object! performance could be improved #159).
  • BREAKING HashMap and BTreeMap conversions are now more generic, working for any pair of K key and V value where K: AsRef<str> and V: Into<JsonValue>. This means that type inference won't always work in your favor, but should be much more flexible.
  • You can now .collect() an interator of (K, V) (with bounds same as point above) into an Object.

@maciejhirsz maciejhirsz merged commit 2a57273 into master Sep 6, 2019
@maciejhirsz maciejhirsz deleted the v0.12.0 branch September 6, 2019 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cannot borrow variables in object! object! performance could be improved
1 participant