Skip to content

Commit

Permalink
Merge pull request #51 from eminence/prep_for_0_11
Browse files Browse the repository at this point in the history
Prep for 0.11
  • Loading branch information
eminence authored Aug 25, 2024
2 parents b253c69 + 74f324e commit 273e2ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "xmltree"
version = "0.10.3"
version = "0.11.0"
authors = ["Andrew Chin <[email protected]>"]
description = "Parse an XML file into a simple tree-like structure"
documentation = "https://docs.rs/xmltree/"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Add the following to your `Cargo.toml` file:

```toml
[dependencies]
xmltree = "0.10"
xmltree = "0.11"
```

### Feature-flags
Expand All @@ -32,7 +32,7 @@ use a version of xmltree that matches the version of xml-rs you are using:

| xml-rs version | xmltree version |
|----------------|-----------------|
| 0.8 | 0.10 |
| 0.8 | 0.11 |
| 0.7 | 0.8 |
| 0.6 | 0.6 |

Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
//!
//! ```


#[cfg(all(feature = "attribute-order", not(feature = "attribute-sorted")))]
/// The type used to store element attributes.
pub type AttributeMap<K, V> = indexmap::map::IndexMap<K, V>;
Expand Down Expand Up @@ -153,7 +152,7 @@ pub struct Element {
///
/// By default, this is a `HashMap`, but there are two optional features that can change this:
///
/// * If the "attribute-order" feature is enabled, then this is an [IndexMap](https://docs.rs/indexmap/1.4.0/indexmap/),
/// * If the "attribute-order" feature is enabled, then this is an [IndexMap](https://docs.rs/indexmap/2/indexmap/),
/// which will retain item insertion order.
/// * If the "attribute-sorted" feature is enabled, then this is a [`std::collections::BTreeMap`], which maintains keys in sorted order.
pub attributes: AttributeMap<String, String>,
Expand Down

0 comments on commit 273e2ad

Please sign in to comment.