Commit Graph

232 Commits

Author SHA1 Message Date
Dirkjan Ochtman
35f674ff87 Apply suggestions for clippy 1.84 2025-01-10 10:09:15 +01:00
Dirkjan Ochtman
aa263125d7 Add weekly scheduled CI runs 2025-01-10 10:09:15 +01:00
Dirkjan Ochtman
c3125f863c
Bump instant-xml version to 0.5.2 2024-12-20 09:41:33 +01:00
Dirkjan Ochtman
81225dcbb0 macros: bump version to 0.5.2 2024-12-20 09:40:12 +01:00
Dirkjan Ochtman
16f96d7786 ci: avoid dev-dependencies in MSRV testing 2024-12-20 09:40:12 +01:00
Dirkjan Ochtman
d217af23b1 Test for conflicts with derived serde impls 2024-12-20 09:40:12 +01:00
Dirkjan Ochtman
06fb508e2b Qualify trait method calls to avoid conflicts 2024-12-20 09:40:12 +01:00
Dirkjan Ochtman
cb48920b5b Add explicit ToXml impl for Cow slices 2024-12-20 09:40:12 +01:00
Dirkjan Ochtman
a0cf08faaf Accomodate new license for unicode-ident 1.0.14 2024-12-20 09:40:12 +01:00
Dirkjan Ochtman
6d100623bc Apply suggestions from clippy 1.83 2024-12-20 09:40:12 +01:00
Dirkjan Ochtman
74be76d427 Elide useless lifetimes 2024-11-14 11:46:50 +01:00
dependabot[bot]
4030539da8 Update thiserror requirement from 1.0.29 to 2.0.3
Updates the requirements on [thiserror](https://github.com/dtolnay/thiserror) to permit the latest version.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.29...2.0.3)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-11 14:14:02 +01:00
Dirkjan Ochtman
8ec3ced2d6 Bump versions to 0.5.1 2024-10-23 14:12:28 +00:00
Dirkjan Ochtman
fc60c25bba Upgrade cargo-deny-action to v2 2024-10-23 08:19:31 +00:00
Dirkjan Ochtman
27eb7b2ed0 Enable Actions in Dependabot config 2024-10-23 08:00:13 +00:00
Dirkjan Ochtman
3d642cc927 Upgrade actions/checkout to v4 2024-10-23 08:00:13 +00:00
Dirkjan Ochtman
01ba7656af Discard use of actions-rs/cargo 2024-10-23 08:00:13 +00:00
Dirkjan Ochtman
4f58bfb72e Switch from actions-rs/toolchain to dtolnay/rust-toolchain 2024-10-23 08:00:13 +00:00
gibbz00
1bae618b51 chore: remove redundant Eq derives in forward-enum tests 2024-10-22 21:03:59 +00:00
gibbz00
a575fc627a fix: support all accumulators in enum forward deserialization
Previously limited to Option<T> only.
2024-10-22 21:03:59 +00:00
gibbz00
03d99af431 feat: impl FromXml for Box<T> 2024-10-22 20:47:50 +00:00
gibbz00
f17e2e0350 feat: impl ToXml for Box<T> 2024-10-22 20:47:50 +00:00
Dirkjan Ochtman
0f641fdc1a Apply clippy suggestions for Rust 1.82 2024-10-22 19:53:46 +00:00
Dirkjan Ochtman
960c44af2f Add FUNDING metadata 2024-10-10 07:31:38 +00:00
Dirkjan Ochtman
209d34184c Update repository URL after move 2024-08-20 18:21:33 +02:00
Beau Hartshorne
677f429afe Update README.md 2024-08-04 22:52:35 +02:00
Beau Hartshorne
4c3ad2cb8f
Update README.md (#66) 2024-07-24 11:56:28 -07:00
Wez Furlong
a1610f689f Allow direct String fields to match the empty string
Empty is not the same as missing, and the empty string
crops up a lot in upnp/dlna.
2024-06-07 14:52:42 +02:00
Dirkjan Ochtman
dfc5894edf Provide more context in DuplicateValue errors 2024-06-07 13:58:52 +02:00
Wez Furlong
775bad82a4 really fix scalar enum namespace handling
It is actually important to consider the field name when provided,
otherwise we can incorrectly match fields with different names!
2024-06-07 13:39:14 +02:00
Wez Furlong
2156e100ee fix in "URL is not a hyperlinke" in cargo doc
```
warning: this URL is not a hyperlink
   --> /home/wez/wez-personal/instant-xml/instant-xml/src/de.rs:499:32
    |
499 | /// Valid character ranges per https://www.w3.org/TR/xml/#NT-Char
    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://www.w3.org/TR/xml/#NT-Char>`
    |
    = note: bare URLs are not automatically turned into clickable links
    = note: `#[warn(rustdoc::bare_urls)]` on by default
```
2024-05-23 00:01:20 +02:00
Wez Furlong
5c0171b474 emit ::std::result::Result rather than unqualified Result
This fixes an issue where attempting to derive FromXml or ToXml
would fail if the embedding application had used something like

```
pub type Result<T> = std::result::Result<T, Error>;
```
2024-05-23 00:01:20 +02:00
Wez Furlong
3e72aa7ae3 fix erroneous debug assertion in nested namespace case
The assertion was checking to ensure that the emitted tag
had no prefix, which breaks the case where a prefix is
required, but only in debug builds!
2024-05-23 00:01:20 +02:00
Wez Furlong
05de91af02 fixup namespace handling for scalar enums
We need to match the default namespace from the type,
rather than the namespace from the associate id.
2024-05-23 00:01:20 +02:00
Nicholas Rempel
c584137ee5 Add support for comments 2024-04-06 14:26:49 -07:00
Nicholas Rempel
a199cc7b5c Map default xml prefix 2024-04-04 08:57:35 +02:00
Dirkjan Ochtman
2b691c5131 Extend test to cover . and _, too 2024-04-02 07:19:39 +02:00
Dirkjan Ochtman
6b483b7e6d Bump instant-xml-macros version to 0.4.2 2024-04-02 07:19:39 +02:00
Nicholas Rempel
78ed6a6730 Add test for namespace containing dash 2024-04-02 07:19:39 +02:00
Dirkjan Ochtman
7e3099c915 Enable namespace prefixes containing dashes 2024-04-02 07:19:39 +02:00
Dirkjan Ochtman
a0c114ed02 macros: prepare 0.4.1 release 2024-03-18 14:37:21 +01:00
dependabot[bot]
5009655734 Update heck requirement from 0.4 to 0.5
---
updated-dependencies:
- dependency-name: heck
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-18 14:26:19 +01:00
Beau Hartshorne
1d9b5f62ed
Add cover image (#51) 2024-02-28 11:13:54 -08:00
Dirkjan Ochtman
8e8dc10419 Bump MSRV to 1.61 (for memchr) 2023-10-25 22:36:20 +02:00
Dirkjan Ochtman
173997f07b Bump version for semver-incompatible API changes 2023-10-25 22:36:20 +02:00
Dirkjan Ochtman
3372ccb981 Add basic support for CDATA 2023-10-25 22:36:20 +02:00
Dirkjan Ochtman
a6774baef4 Rename entities test case to escaping 2023-10-25 22:36:20 +02:00
Dirkjan Ochtman
edad589294 Escape entities in context iterator 2023-10-25 22:36:20 +02:00
Dirkjan Ochtman
efdf9334c7 Move decode() into de module 2023-10-25 22:36:20 +02:00
Dirkjan Ochtman
6ea31b721f Remove impl FromXml for &str
This is a bit opinionated, but it helps avoid run-time panics from
doing the simple thing (&str) which is wrong in the face of
escaping strings. The overhead from `Cow` (both in terms of developer
experience and run-time performance) seems limited enough.

This also makes the next part a little easier.
2023-10-25 22:36:20 +02:00