Commit Graph

190 Commits

Author SHA1 Message Date
D. Scott Boggs 1884ea272c Pass client instance to the event stream 2023-02-13 12:22:46 -05:00
D. Scott Boggs 6f5a2a5e90 Add is_variant methods to all enums 2023-02-01 15:38:48 -05:00
D. Scott Boggs 1081273571 Temporary patch for is_variant enabled 2023-02-01 15:38:48 -05:00
D. Scott Boggs 2e8f8a4885 Fixes for breaking changes in the toml crate 2023-02-01 08:52:50 -05:00
dependabot[bot] 765ab75ea8 Update toml requirement from 0.5 to 0.7
Updates the requirements on [toml](https://github.com/toml-rs/toml) to permit the latest version.
- [Release notes](https://github.com/toml-rs/toml/releases)
- [Commits](https://github.com/toml-rs/toml/compare/toml_datetime-v0.5.0...toml-v0.7.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 08:52:50 -05:00
D. Scott Boggs 77409389ac Drop dependency on serde_qs for now 2023-02-01 07:28:51 -05:00
dependabot[bot] 6b2cb17d9a Update indoc requirement from 1.0 to 2.0
Updates the requirements on [indoc](https://github.com/dtolnay/indoc) to permit the latest version.
- [Release notes](https://github.com/dtolnay/indoc/releases)
- [Commits](https://github.com/dtolnay/indoc/compare/1.0.0...2.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 06:05:18 -05:00
D. Scott Boggs d6f9617207 Use macro to define ID types 2023-01-29 09:11:44 -05:00
D. Scott Boggs 3ac64d3d08 Add description to entities crate 2023-01-29 07:03:09 -05:00
D. Scott Boggs 6ff6697b46 This is a minor release, not a patch 2023-01-29 06:56:45 -05:00
D. Scott Boggs b6d6651869 Add a little more documentation 2023-01-29 06:13:53 -05:00
D. Scott Boggs 0cfe4d7db8 Update upload_photo example to wait for processing 2023-01-29 06:13:53 -05:00
D. Scott Boggs 5f5bc8728c Add alias/convenience method 2023-01-29 06:13:53 -05:00
D. Scott Boggs b6fd884387 Add client method to wait for attachment processing 2023-01-29 06:13:53 -05:00
D. Scott Boggs 184dd32146 Ignore README tests because they don't work in CI 2023-01-24 15:33:49 -05:00
D. Scott Boggs 45338d5977 bump version 2023-01-24 15:33:49 -05:00
D. Scott Boggs 8abf4950f9 Test the whole workspace 2023-01-24 15:33:49 -05:00
D. Scott Boggs e662eac46a Fix routes which take an Id type; fix doctests 2023-01-24 15:33:49 -05:00
D. Scott Boggs 53fc05d36f Add Id types to prelude and entities prelude to crate prelude 2023-01-24 15:33:49 -05:00
D. Scott Boggs be39ca6e24 Implement std::format::Display for all Id types 2023-01-24 15:33:49 -05:00
D. Scott Boggs eeac76c750 Add CI jobs to comb branch 2023-01-24 15:33:49 -05:00
D. Scott Boggs ef28d8367f Add note pointing to more complete example. 2023-01-21 05:33:41 -05:00
Sprite 2301fda307 Fix errors caused by sync locks crossing `await` in `cli::authenticate` 2023-01-20 16:55:26 -05:00
kuna 9084c1fcaa Update docs for Registration::new_with_client
Co-authored-by: Scott Boggs <dscottboggs@gmail.com>
2023-01-14 16:28:05 -05:00
baummarten d94bcd45d2 Mastodon::new now wraps Mastodon::new_with_client 2023-01-14 16:28:05 -05:00
baummarten 72d158513c Registration::new_with_client
Registration can now be created with a custom Reqwest Client.
2023-01-14 16:28:05 -05:00
D. Scott Boggs c93e5a5020 Add static assertions 2023-01-09 09:03:21 -05:00
D. Scott Boggs fcc2035b46 Add constructors for ID types 2023-01-09 09:03:21 -05:00
D. Scott Boggs 876ac3b985 Add Mention ID type 2023-01-09 09:03:21 -05:00
D. Scott Boggs 6d8a9d6194 Add List ID type 2023-01-09 09:03:21 -05:00
D. Scott Boggs 6e044c3f35 Use `impl AsRef<str>` instead of `&str` to work with new ID types 2023-01-09 09:03:21 -05:00
D. Scott Boggs 06caec85b3 Add ID type for reports 2023-01-09 09:03:21 -05:00
D. Scott Boggs d4e7c4b59b Add ID type for relationships 2023-01-09 09:03:21 -05:00
D. Scott Boggs f4ef3c27ab Add ID type for pushes 2023-01-09 09:03:21 -05:00
D. Scott Boggs f188c20250 Add ID type for notifications 2023-01-09 09:03:21 -05:00
D. Scott Boggs c5f199b460 Add ID type for filters 2023-01-09 09:03:21 -05:00
D. Scott Boggs 9f4327f546 Add ID type for attachments 2023-01-09 09:03:21 -05:00
D. Scott Boggs 547d994d13 Add ID type for account 2023-01-09 09:03:21 -05:00
Matthias Beyer 97ae0973c3 Wrap status id in helper type
This wrapper type ensures that the status id cannot accidentially be
compared to some other string that represents something entirely else.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-09 09:03:21 -05:00
D. Scott Boggs 10ec4dc81f Fix: backwards compatibility 2023-01-09 07:27:53 -05:00
D. Scott Boggs 14dc17e582 Split status_builder module into a few files 2023-01-09 07:27:53 -05:00
D. Scott Boggs cc6bd77cab Publish NewStatus fields 2023-01-09 07:27:53 -05:00
D. Scott Boggs abafaf224c Add support for Filter v2 2023-01-09 07:27:53 -05:00
D. Scott Boggs 6ee2f277d8 Move legacy Filter type to mod v1; publish fields 2023-01-09 07:27:53 -05:00
D. Scott Boggs acef484b73 Finish TODO Parse DateTime before publishing this field 2023-01-09 07:27:53 -05:00
D. Scott Boggs 94624ac1db Make additional fields public 2023-01-09 07:27:53 -05:00
jhwgh1968 83e02464af Add notification type "follow request" 2023-01-09 04:51:26 -05:00
jhwgh1968 9fd1b29521 Add "poll" notification support 2023-01-09 04:51:26 -05:00
Matthias Beyer 6dcffc0802 Fix: Use Visibility pub here, to be backwards compatible
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-04 08:29:52 -05:00
Matthias Beyer e0f38240b7 Make package fields workspace-wide
This patch makes the "version", "license", "authors" and "edition"
fields in the manifest workspace-wide.

This way we ensure that mastodon-async-entities stays in sync with
mastodon-async.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2023-01-04 08:29:52 -05:00