Upgrade to v0.14
OpenDAL v0.14 removed all deprecated APIs in previous versions, including:
Operator::with_backoff
in v0.13- All services
Builder::finish()
in v0.12 - All services
Backend::build()
in v0.12
Please visit related version's upgrade guide for migration.
And in OpenDAL v0.14, we introduce a break change for write
operations.
pub trait Accessor {
- async fn write(&self, args: &OpWrite) -> Result<BytesWriter> {}
+ async fn write(&self, args: &OpWrite, r: BytesReader) -> Result<u64> {}
}
The following APIs have affected by this change:
Object::write
now acceptimpl Into<Vec<u8>>
instead ofAsRef<&[u8]>
Object::writer
has been removed.Object::write_from
has been added to support write from a reader.- All layers should be refactored to adapt new
Accessor
trait.
For more information about this change, please refer to RFC-0554: Write Refactor.
What's Changed
- refactor(ops): Promote ops as a parent mod by @Xuanwo in #553
- RFC-0554: Write Refactor by @Xuanwo in #554
- feat: Implement huaweicloud obs service other op support by @eastfisher in #557
- refactor: Implement RFC-0554 Write Refactor by @Xuanwo in #556
- refactor: Remove all unused qualifications by @eastfisher in #560
- feat: Add new operations in Accessor by @Xuanwo in #564
- feat: Implement obs create and write by @eastfisher in #565
- refactor: Fix typo in azblob backend by @eastfisher in #569
- RFC-0561: List metadata reuse by @ClSlaid in #561
- feat(services/s3): Implement Multipart support by @Xuanwo in #571
- feat: Implement MultipartObject public API by @Xuanwo in #574
- feat: Implement integration tests for multipart by @Xuanwo in #575
- feat: Implement presign for write multipart by @Xuanwo in #576
- test: Add assert of public struct size by @Xuanwo in #578
- feat: List metadata reuse by @ClSlaid in #577
- feat: Implement integration test for obs by @Xuanwo in #572
- refactor: change ObjectError's op from &'static str to Operation by @eastfisher in #580
- docs: Add docs for obs service by @eastfisher in #579
- refactor: Remove deprecated APIs by @Xuanwo in #582
- Bump to version 0.14 by @Xuanwo in #583
Full Changelog: v0.13.1...v0.14.0