You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: core/src/docs/upgrade.md
+28
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,31 @@
1
+
# Upgrade to v0.31
2
+
3
+
In version v0.31 of OpenDAL, we made some internal refactoring to improve its compatibility with the ecosystem.
4
+
5
+
## MSRV Bump
6
+
7
+
We increased the MSRV to 1.64 from v0.31 onwards. Although it is still possible to build OpenDAL under older rustc versions, we cannot guarantee that any issues related to them will be fixed.
8
+
9
+
## Accept `std::time::Duration` instead
10
+
11
+
Previously, OpenDAL accepted `time::Duration` as input for `presign_xxx`. However, since v0.31, we have changed this to accept `std::time::Duration` so that users do not need to depend on `time`. Internally, we migrated from `time` to `chrono` for better integration with other parts of the ecosystem.
12
+
13
+
## `disable_ec2_metadata` for services s3
14
+
15
+
We have added a new configuration option called `disable_ec2_metadata` for the S3 service in response to a mistake where it was mixed up with another option called `disable_config_load`. Users who want to disable loading credentials from EC2 metadata should set this option instead.
16
+
17
+
## Services Feature Flag
18
+
19
+
Starting from v0.31, all services in OpenDAL are split into different feature flags. To enable only S3 support, use the following TOML configuration:
20
+
21
+
```toml
22
+
opendal = {
23
+
version = "0.31",
24
+
default-features = false,
25
+
features = ["services-s3"]
26
+
}
27
+
```
28
+
1
29
# Upgrade to v0.30
2
30
3
31
In version 0.30, we made significant breaking changes by removing objects. Our goal in doing so was to provide our users with APIs that are easier to understand and maintain.
0 commit comments