Repository navigation
v0.12.0
Upgrade to v0.12
OpenDAL introduces breaking changes for services initiation.
Since v0.12, Operator::new will accept impl Accessor + 'static instead of Arc<dyn Accessor>:
impl Operator {
pub fn new(accessor: impl Accessor + 'static) -> Self { .. }
}Every service's Builder now have a build() API which can be run without async:
let mut builder = fs::Builder::default();
let op: Operator = Operator::new(builder.build()?);Along with these changes, Operator::from_iter and Operator::from_env now is a blocking API too.
For more information about this change, please refer to RFC-0501: New Builder.
The following APIs have been deprecated:
- All services
Builder::finish()(replaced byBuilder::build()) - All services
Backend::build()(replace byBuilder::default())
The following APIs have been removed:
- public struct
Metadata(deprecated in v0.8, replaced byObjectMetadata)
Visit Upgrade Notes for more information.
What's Changed
- chore(deps): Bump anyhow from 1.0.58 to 1.0.60 in /oay by @dependabot in #499
- chore(deps): Bump anyhow from 1.0.58 to 1.0.60 in /oli by @dependabot in #500
- RFC-0501: New Builder by @Xuanwo in #501
- refactor: Remove deprecated struct Metadata by @Xuanwo in #503
- feat: Use isahc to replace hyper by @Xuanwo in #471
- feat: Implement RFC-0501 New Builder by @Xuanwo in #510
- refactor: make parse http error code public by @ClSlaid in #511
- refactor: Extrace new http error APIs by @Xuanwo in #515
- refactor: Simplify the error response parse logic by @Xuanwo in #516
- Bump to version 0.12 by @Xuanwo in #518
New Contributors
Full Changelog: v0.11.4...v0.12.0