Releases: MindFlavor/AzureSDKForRust
Azure Active Directory helper crate
As per PR #130.
Also:
- Reenabled CI (by Marius Seritan - PR #128).
- Added support for alternative Cosmos DB URIs, such as China, simulator and custom (PR #131).
Breaking changes
- Due to the compile-time selection of the CosmosDB URI, the
Client
creation syntax has been slightly changed. To fix your preexisting code, replaceClient::new(..)
withClientBuilder::new(..)
. Variations are documented here: https://docs.rs/azure_sdk_cosmos/0.21.0/azure_sdk_cosmos/struct.ClientBuilder.html.
Azure REST API bump to 2018-03-28
Also implemented the storage account method: get_account_information.
Crate split
The previous crate has been split into smaller ones. The benefits are:
- Faster compilation time.
- More clear separation of concerns.
- Hopefully it will increase community participation because there is less risk of working on a moving crate.
The downsides are:
- More cumbersome to handle (particularly the dependencies).
- Some functions have been exported because are used by other Azure crates but are not useful besides that.
- Have to change the preexisting code to update the dependencies.
Migration to Hyper-rustls
More details here: #122.
CosmosDB enhancements
SAS token based authentication
Added support for SAS token based authentication
Courtesy of Jean-Marc Le Roux with PR #110!
Emulator support
Also migrated to Rust 2018
Migration of storage blob methods to builder pattern
The following methods have been migrated:
- Create container
- List containers
- Delete container
- Get container ACLs
- Set container ACLs
- Get container properties
- Acquire container lease
- Break container lease
- Release container lease
- Renew container lease
- List Blobs
- Get Blob
- Put block blob
- Put page blob
- Put append blob
- Update page
- Clear page
- Put block
- Put block list
- Get block list
- Delete blob
- Delete blob snapshot
- Acquire blob lease
- Renew blob lease
- Release blob lease
- Break blob lease
Unfortunately these changes are not backward compatilble. Please see the examples folder for how to use the new methods. Hopefully they are much more easy to use.
Hyper 0.12 and builder pattern (in progress)
This release is a big one. The main feature is the support of hyper 0.12.x. This release also marks the beginning of the use of the builder pattern for request creation. Unfortunately this change is not backward-compatible but the code is really cleaner this way. You are also able to catch problems soon as many checks are done at compile time (more to come). Please refer to the examples section on how to use the new pattern.
Azure Storage
- Migrated storage::container to builder pattern.
- Implemented all missing container functions (lease and properties).
Cosmos DB
- Implemented stored procedure execution (#52).
- Migrated to builder pattern.
Miscellaneous
Get Block List
- Implemented get_block_list with e2e tests
- Changed the BlockList type because the Azure REST API Get Block List and Put Block List APIs accept different XMLs 😞 . For this I had to bump to 0.8 version.