Commit Graph

202 Commits

Author SHA1 Message Date
Josh McKinney d4956e943c
fix: next/prev page handling in Page struct
Improve the handling of next and previous pages in the `Page` struct
by fixing a bug that caused the URLs to be set to None when a page with
no data was loaded. This change allows for the next and previous page
URLs to be preserved for future retrieval even when there are no
results in the current page.
2023-04-26 18:53:23 -07:00
Scott Boggs 1cb3b834cf
Merge pull request #97 from joshka/page_auth
fix: authenticate in page_next/page_prev calls
2023-04-22 06:35:23 -04:00
Scott Boggs 321f332723
Merge pull request #98 from joshka/msrv
build: set the rust msrv to 1.65
2023-04-22 06:33:33 -04:00
Scott Boggs 128ce5de3f
Merge pull request #92 from dscottboggs/dependabot/cargo/html2text-0.5.0
Update html2text requirement from 0.4.4 to 0.5.0
2023-04-22 06:33:08 -04:00
Josh McKinney 1e8d7f3967 build: set the rust msrv to 1.65
necessary due to the use of workspace.package to handle inherited props
2023-04-14 16:21:35 -07:00
Josh McKinney 2f3daffa74 fix: authenticate in page_next/page_prev calls
Fixes the following error:

error err=Couldn't get next page

Caused by:
    0: Error encountered in the HTTP backend while requesting a route.
    1: HTTP status client error (401 Unauthorized) for url (https://hachyderm.io/api/v1/timelines/home?max_id=110196530215835290)
2023-04-14 05:05:44 -07:00
dependabot[bot] da873e4ea8
Update html2text requirement from 0.4.4 to 0.5.0
Updates the requirements on [html2text](https://github.com/jugglerchris/rust-html2text) to permit the latest version.
- [Release notes](https://github.com/jugglerchris/rust-html2text/releases)
- [Changelog](https://github.com/jugglerchris/rust-html2text/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jugglerchris/rust-html2text/compare/0.4.4...0.5.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-01 02:59:52 +00:00
D. Scott Boggs 782ae82fb5 Bump version 2023-03-19 12:05:49 -04:00
Scott Boggs e6aae9041f
Merge pull request #90 from dscottboggs/fix/derive-is_variant
Fix: derive `is_variant`
2023-03-19 12:02:54 -04:00
D. Scott Boggs e279f4bda7 Switch from the `is_variant` crate to the `derive_is_enum_variant` one. 2023-03-19 11:22:51 -04:00
D. Scott Boggs 7324a6c086 Fix stream urls 2023-02-27 08:51:29 -05:00
D. Scott Boggs ae3c9ae6ce Bump version 2023-02-13 12:31:10 -05:00
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