Upgrade to v0.16
OpenDAL v0.16 refactor the internal implementation of http
service. Since v0.16, http service can be used directly without enabling services-http
feature. Accompany by these changes, http service has the following breaking changes:
services-http
feature has been deprecated. Enablingservices-http
is a no-op now.- http service is read only services and can't be used to
list
orwrite
.
OpenDAL introduces a new layer ImmutableIndexLayer
that can add list
capability for services:
use opendal::layers::ImmutableIndexLayer;
use opendal::Operator;
use opendal::Scheme;
async fn main() {
let mut iil = ImmutableIndexLayer::default();
for i in ["file", "dir/", "dir/file", "dir_without_prefix/file"] {
iil.insert(i.to_string())
}
let op = Operator::from_env(Scheme::Http)?.layer(iil);
}
For more information about this change, please refer to RFC-0627: Split Capabilities.
What's Changed
- Bump to version 0.15 by @Xuanwo in #630
- feat: Implement tests for read-only services by @Xuanwo in #634
- refactor: Migrate all behavior tests to capability based by @Xuanwo in #635
- feat(services/ftp): Implemented multi connection by @ArberSephirotheca in #637
- refactor: Remove list support from http service by @Xuanwo in #639
- RFC-0623: Redis Service by @ClSlaid in #623
- refactor: Replace isahc with reqwest and ureq by @Xuanwo in #642
- deps: Bump reqsign to v0.4 by @Xuanwo in #643
- Finalize FTP read operation by @ArberSephirotheca in #644
- feat: Implement service for IPFS HTTP Gateway by @Xuanwo in #645
- docs: Add docs for ipfs by @Xuanwo in #649
- docs: Fix typo by @Xuanwo in #650
- feat: Add ImmutableIndexLayer by @Xuanwo in #651
- feat: derive Hash for Scheme by @damooo in #653
- feat(services/ftp): Setup integration tests by @Xuanwo in #648
- docs: Add docs for ftp services by @Xuanwo in #655
- chore(deps): Update criterion requirement from 0.3 to 0.4 by @dependabot in #656
- chore(deps): Update quick-xml requirement from 0.24 to 0.25 by @dependabot in #657
- deps: Remove not used features by @Xuanwo in #658
- Bump to version 0.16 by @Xuanwo in #659
New Contributors
Full Changelog: v0.15.0...v0.16.0