Emmanuel Gil Peyrot
f2c3f45a6f
data_forms: Stop duplicating FORM_TYPE in memory.
...
The FORM_TYPE is now only present once, as the form_type member of the
DataForm struct, it isn’t duplicated in fields anymore.
This removes the need to ignore this special field in every single
protocol built on XEP-0128.
2019-02-24 19:52:59 +01:00
a076221c9a
Add rustdoc flag to sort modules by XEP number
...
`--sort-modules-by-appearance` needs to be passed to rustdoc for this to
happen. I haven't found a way to make it so that we don't have to add
this flag manually each time we build locally. This config option should
at least fix it for docs.rs.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-02-24 13:42:09 +01:00
Emmanuel Gil Peyrot
637c3eadd7
Fix clippy lints.
2019-02-21 21:00:58 +01:00
Emmanuel Gil Peyrot
63dcba03b2
iq: Make @id required, as per RFC6120 §8.1.3.
2019-02-21 20:48:02 +01:00
Emmanuel Gil Peyrot
d811c10ed3
pubsub: Make Item common to both pubsub and pubsub#event namespaces.
2019-01-27 18:57:25 +01:00
Emmanuel Gil Peyrot
d60feffc22
pubsub: Add a PubSubPayload trait.
2019-01-27 17:40:46 +01:00
Emmanuel Gil Peyrot
b936ce595f
caps: Add a helper constructor for Caps.
2019-01-27 17:20:34 +01:00
Emmanuel Gil Peyrot
ede2b08039
disco: Add a helper constructor for Feature.
2019-01-27 17:18:58 +01:00
Emmanuel Gil Peyrot
376fa9f92e
avatar: Fix parsing of avatar data containing whitespace in the base64.
2019-01-27 17:17:12 +01:00
Emmanuel Gil Peyrot
1921f6819e
util.helpers: Add a whitespace-aware base64 codec.
2019-01-27 17:16:23 +01:00
Emmanuel Gil Peyrot
b6c7a06edd
avatar: Fix build with --features=disable-validation.
2019-01-25 03:45:48 +01:00
Emmanuel Gil Peyrot
35fccafc09
avatar: Add a new XEP-0084 parser.
2019-01-25 03:34:23 +01:00
Emmanuel Gil Peyrot
82015de964
hashes: Add an hex-encoded SHA-1 attribute helper.
2019-01-25 03:03:08 +01:00
Emmanuel Gil Peyrot
7160397912
Cargo.toml: Release version 0.12.2.
2019-01-16 15:23:07 +01:00
Emmanuel Gil Peyrot
f28a27185b
ChangeLog: Add imminent 0.12.2 release.
2019-01-16 15:23:00 +01:00
Emmanuel Gil Peyrot
b59ca1cbcb
lib: Reexport TryFrom and util::error::Error.
2019-01-16 15:22:51 +01:00
Emmanuel Gil Peyrot
6660ca4c86
Cargo.toml: Release version 0.12.1.
2019-01-16 14:33:37 +01:00
Emmanuel Gil Peyrot
5982f81805
ChangeLog: Add imminent 0.12.1 release.
2019-01-16 14:33:19 +01:00
Emmanuel Gil Peyrot
0b38be9ec9
ChangeLog: Fix release date of 0.12.0.
2019-01-16 14:33:08 +01:00
Emmanuel Gil Peyrot
bfd90be0c9
lib: Reexport JidParseError from the jid crate.
2019-01-16 14:32:51 +01:00
Emmanuel Gil Peyrot
e3d6605659
Cargo.toml: Release version 0.12.0.
2019-01-16 13:48:01 +01:00
Emmanuel Gil Peyrot
9946c5dc59
Cargo.toml: Update the homepage and repository.
2019-01-16 13:45:19 +01:00
Emmanuel Gil Peyrot
66b87257ea
Cargo.toml: Bump minidom and jid.
2019-01-16 13:32:55 +01:00
Emmanuel Gil Peyrot
018a303090
ChangeLog: Document why Jid is getting reexported.
2019-01-16 13:23:44 +01:00
Emmanuel Gil Peyrot
5efc64490c
lib: Reexport Jid from the jid crate.
2019-01-16 13:22:07 +01:00
Emmanuel Gil Peyrot
107e66f987
ChangeLog: Add imminent version 0.12.0.
2019-01-16 13:17:33 +01:00
Emmanuel Gil Peyrot
15b9e65a5d
util: Add forgotten mod.rs file.
2019-01-13 14:45:13 +01:00
Emmanuel Gil Peyrot
409a1dafa9
Move Error, helpers and macros into a util module.
2019-01-13 12:39:51 +01:00
Emmanuel Gil Peyrot
2a7cf487a4
roster: Also test for the size of the new Ask attribute.
2019-01-13 12:07:11 +01:00
Emmanuel Gil Peyrot
b6796d54e6
roster: Simplify the @ask parsing using a singleton attribute.
2019-01-13 12:07:08 +01:00
Emmanuel Gil Peyrot
62539cbae3
macros: Add a singleton attribute.
2019-01-13 12:07:05 +01:00
linkmauve
69f77e9cf5
Merge branch 'fix-1-add-ask' into 'master'
...
Add ask attribute from RFC3921.
Closes #1
See merge request xmpp-rs/xmpp-parsers!4
2019-01-13 11:06:17 +00:00
Emmanuel Gil Peyrot
2347b36c89
Merge branch 'compat'
2019-01-13 12:00:36 +01:00
Emmanuel Gil Peyrot
635e8633a8
sasl: Document the reason for the unprefixed @lang test.
2019-01-13 11:56:40 +01:00
04c5bcac1d
ci: split build and test stages
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-01-12 22:16:42 +01:00
Emmanuel Gil Peyrot
c2b7e19378
Rename "compat" into "disable-validation", to insist on it breaking some guarantees.
2019-01-12 22:00:46 +01:00
Emmanuel Gil Peyrot
8b15728bb2
blocking, jingle_ft: Split #[cfg] sections into their own tests.
2019-01-12 20:41:40 +01:00
Emmanuel Gil Peyrot
ee511e653a
sasl: Add back the assert, with the correct @xml:lang this time.
2019-01-12 20:41:12 +01:00
O01eg
5ebe92c260
Add ask attribute from RFC3921.
...
Fixes #1
2019-01-07 16:49:33 +03:00
Astro
047649dbc8
.gitlab-ci.yml: add a compat-rust-latest stage
2018-12-30 01:08:30 +01:00
Astro
95f4ade4ba
compat mode that relaxes some of the check_* macros
2018-12-30 00:36:29 +01:00
Astro
1e85abd10c
sasl: Add test failure_with_non_prefixed_text_lang.
2018-12-29 22:40:49 +01:00
Emmanuel Gil Peyrot
96c8b05677
Do some manual formatting in macros.
2018-12-29 18:29:11 +01:00
Emmanuel Gil Peyrot
f6593aa74b
Setup CI for GitLab.
2018-12-20 16:56:15 +01:00
Emmanuel Gil Peyrot
cf0cfda6b5
Link .hgignore to .gitignore.
2018-12-20 16:46:59 +01:00
Emmanuel Gil Peyrot
376ccc1c06
Run cargo fmt
on some more files.
2018-12-18 16:07:46 +01:00
Emmanuel Gil Peyrot
090a16953b
bind: Add forgotten test for attributes.
2018-12-18 16:00:25 +01:00
Emmanuel Gil Peyrot
7a204cd182
Also test the size of IBB StreamId.
2018-12-18 15:44:07 +01:00
Emmanuel Gil Peyrot
5e64dee0ed
Only define assert_size!() macro when testing.
2018-12-18 15:43:49 +01:00
Emmanuel Gil Peyrot
83f7c67870
Remove now-useless "extern crate"s.
2018-12-18 15:39:37 +01:00