Revert "xso-proc: Replace std stuff with alloc/core stuff"
This reverts commit 4e5f0bc961.
Unfortunately, in std contexts, the `alloc` crate is not imported. That
means we cannot rely on it being accessible and it in fact breaks builds
of crates which are not `no_std`.
Fixes #155.
This commit is contained in:
parent
33098e6f2c
commit
6ec275d381
8 changed files with 8 additions and 12 deletions
|
|
@ -588,7 +588,6 @@ a field, for consistency.
|
|||
#### Example without codec
|
||||
|
||||
```rust
|
||||
# extern crate alloc;
|
||||
# use xso::FromXml;
|
||||
#[derive(FromXml, Debug, PartialEq)]
|
||||
#[xml(namespace = "urn:example", name = "foo")]
|
||||
|
|
@ -606,7 +605,6 @@ assert_eq!(foo, Foo {
|
|||
#### Example with codec
|
||||
|
||||
```rust
|
||||
# extern crate alloc;
|
||||
# use xso::FromXml;
|
||||
#[derive(FromXml, Debug, PartialEq)]
|
||||
#[xml(namespace = "urn:example", name = "foo")]
|
||||
|
|
|
|||
Loading…
Reference in a new issue