This is an automated email from the ASF dual-hosted git repository. psiace pushed a commit to branch prepare in repository https://gitbox.apache.org/repos/asf/opendal-oli.git
commit 55428457113dc1265cfa51e2125a393f1b5e920b Author: Chojan Shang <[email protected]> AuthorDate: Fri Oct 17 18:31:32 2025 +0800 chore: adjust rust and cargo configs --- .gitignore | 3 +++ Cargo.lock | 54 +++-------------------------------------------------- Cargo.toml | 2 +- rust-toolchain.toml | 20 ++++++++++++++++++++ rustfmt.toml | 26 ++++++++++++++++++++++++++ 5 files changed, 53 insertions(+), 52 deletions(-) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..93c43d0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/target +.env +.idea diff --git a/Cargo.lock b/Cargo.lock index a5af6a1..1845488 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1139,47 +1139,6 @@ version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" -[[package]] -name = "jiff" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be1f93b8b1eb69c77f24bbb0afdf66f54b632ee39af40ca21c4365a1d7347e49" -dependencies = [ - "jiff-static", - "jiff-tzdb-platform", - "log", - "portable-atomic", - "portable-atomic-util", - "serde", - "windows-sys 0.59.0", -] - -[[package]] -name = "jiff-static" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03343451ff899767262ec32146f6d559dd759fdadf42ff0e227c7c48f72594b4" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "jiff-tzdb" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1283705eb0a21404d2bfd6eef2a7593d240bc42a0bdb39db0ad6fa2ec026524" - -[[package]] -name = "jiff-tzdb-platform" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "875a5a69ac2bab1a891711cf5eccbec1ce0341ea805560dcd90b7a2e925132e8" -dependencies = [ - "jiff-tzdb", -] - [[package]] name = "js-sys" version = "0.3.77" @@ -1422,18 +1381,20 @@ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" [[package]] name = "opendal" version = "0.54.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42afda58fa2cf50914402d132cc1caacff116a85d10c72ab2082bb7c50021754" dependencies = [ "anyhow", "backon", "base64", "bytes", + "chrono", "crc32c", "futures", "getrandom 0.2.16", "ghac", "http", "http-body", - "jiff", "log", "md-5", "percent-encoding", @@ -1590,15 +1551,6 @@ version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "350e9b48cbc6b0e028b0473b114454c6316e57336ee184ceab6e53f72c178b3e" -[[package]] -name = "portable-atomic-util" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8a2f0d8d040d7848a709caf78912debcc3f33ee4b3cac47d73d1e1069e83507" -dependencies = [ - "portable-atomic", -] - [[package]] name = "potential_utf" version = "0.1.2" diff --git a/Cargo.toml b/Cargo.toml index 148e766..b87d95b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,7 +38,7 @@ humansize = { version = "2.1" } humantime = { version = "2.2" } humantime-serde = { version = "1.1" } indicatif = { version = "0.18" } -opendal = { version = "0.54.0", path = "../../core", features = [ +opendal = { version = "0.54.0", features = [ "services-azblob", "services-azdls", "services-cos", diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..24ee9ce --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +[toolchain] +channel = "stable" +components = ["cargo", "rustfmt", "clippy", "rust-analyzer"] diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..383062d --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,26 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +edition = "2024" +reorder_imports = true + +# format_code_in_doc_comments = true +# group_imports = "StdExternalCrate" +# imports_granularity = "Item" +# overflow_delimited_expr = true +# trailing_comma = "Vertical" +# where_single_line = true
