diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d6df5f4..4fc53d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ concurrency: env: CARGO_TERM_COLOR: always - MSRV: '1.76' + MSRV: '1.83' jobs: check: @@ -48,7 +48,7 @@ jobs: matrix: rust: - stable - - '1.76' + - '1.83' steps: - uses: actions/checkout@v4 - uses: taiki-e/install-action@protoc diff --git a/.gitignore b/.gitignore index 6010bd5..9faafd7 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ target/ *.sw[po] Cargo.lock .idea +.tool-versions diff --git a/CHANGELOG.md b/CHANGELOG.md index dcc727a..598f30a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ This project uses [Semantic Versioning 2.0.0](http://semver.org/). ## main - CHANGED: Deprecated `from` and `to` fields in `EmailForward` +- CHANGED: Drop support for Rust < 1.83 +- CHANGED: Add support for Rust 1.83 +- CHANGED: `DomainCollaborators` have been deprecated and will be removed in the next major version. Please use our Domain Access Control feature. ## 1.0.0 diff --git a/README.md b/README.md index 4d78ed0..a59cf93 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ A Rust client for the [DNSimple API v2](https://developer.dnsimple.com/v2/). ## Requirements -- TBD +- Rust: 1.83+ ## Usage @@ -49,4 +49,4 @@ Contibutions are welcomed. Please open an issue to discuss the changes before op ## License -Copyright (c) 2015-2022 DNSimple Corporation. This is Free Software distributed under the MIT license. +Copyright (c) 2015-2024 DNSimple Corporation. This is Free Software distributed under the MIT license. diff --git a/src/dnsimple/domains_collaborators.rs b/src/dnsimple/domains_collaborators.rs index 1d088ee..73d8942 100644 --- a/src/dnsimple/domains_collaborators.rs +++ b/src/dnsimple/domains_collaborators.rs @@ -67,6 +67,9 @@ impl Domains<'_> { /// `domain_id`: The ID of the domain we want to list the collaborators from /// `options`: The `RequestOptions` /// - Pagination + #[deprecated( + note = "`DomainCollaborators` have been deprecated and will be removed in the next major version. Please use our Domain Access Control feature." + )] pub fn list_collaborators( &self, account_id: u64, @@ -102,6 +105,9 @@ impl Domains<'_> { /// `account_id`: The account ID /// `domain_id`: The ID of the domain we want to list the collaborators of /// `email`: The email of the collaborator to be added + #[deprecated( + note = "`DomainCollaborators` have been deprecated and will be removed in the next major version. Please use our Domain Access Control feature." + )] pub fn add_collaborator( &self, account_id: u64, @@ -138,6 +144,9 @@ impl Domains<'_> { /// `account_id`: The account ID /// `domain_id`: The ID of the domain we want to permanently delete /// `collaborator_id`: The id of the collaborator we want to remove from the domain + #[deprecated( + note = "`DomainCollaborators` have been deprecated and will be removed in the next major version. Please use our Domain Access Control feature." + )] pub fn remove_collaborator( &self, account_id: u64, diff --git a/tests/domains_collaborators_test.rs b/tests/domains_collaborators_test.rs index 15e2049..789a9e0 100644 --- a/tests/domains_collaborators_test.rs +++ b/tests/domains_collaborators_test.rs @@ -2,6 +2,7 @@ use crate::common::setup_mock_for; mod common; #[test] +#[allow(deprecated)] fn test_list_collaborators() { let setup = setup_mock_for( "/1385/domains/1/collaborators", @@ -40,6 +41,7 @@ fn test_list_collaborators() { } #[test] +#[allow(deprecated)] fn test_add_collaborator_success() { let setup = setup_mock_for( "/1385/domains/1/collaborators", @@ -72,6 +74,7 @@ fn test_add_collaborator_success() { } #[test] +#[allow(deprecated)] fn test_add_collaborator_invite_success() { let setup = setup_mock_for( "/1385/domains/1/collaborators", @@ -102,6 +105,7 @@ fn test_add_collaborator_invite_success() { } #[test] +#[allow(deprecated)] fn test_remove_collaborator() { let setup = setup_mock_for( "/1385/domains/1/collaborators/100",