Commit Graph

95 Commits

Author SHA1 Message Date
houseme 749537664f fix:Apply suggestions from clippy 1.88 2025-06-27 18:16:29 +08:00
likewu 81f0c9763f Merge branch 'main' of https://github.com/rustfs/s3-rustfs into feature/ilm
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	crates/utils/Cargo.toml
#	crates/utils/src/net.rs
#	ecstore/Cargo.toml
#	ecstore/src/set_disk.rs
#	rustfs/src/storage/ecfs.rs
2025-06-23 16:42:18 +08:00
likewu cc71f40a6d ilm feature add 2025-06-22 23:04:40 +08:00
Nugine 1606276223 feat(protos): use Bytes for protobuf bytes type fields. 2025-06-15 22:07:01 +08:00
overtrue e6b931f71e fix: correct spelling errors in proto file RenamePartRequst/RenameFileRequst to RenamePartRequest/RenameFileRequest 2025-06-10 21:51:36 +08:00
weisd f85ef06783 merge main 2025-06-09 15:31:11 +08:00
weisd 91c099e35f add Error test, fix clippy 2025-06-09 11:29:23 +08:00
weisd 1d2aeb288a Upgrade rand to 0.9.1 2025-06-09 10:13:03 +08:00
houseme d66525a22f refactor(deps): centralize crate versions in root Cargo.toml (#448)
* chore(ci): upgrade protoc from 30.2 to 31.1

- Update protoc version in GitHub Actions setup workflow
- Use arduino/setup-protoc@v3 to install the latest protoc version
- Ensure compatibility with current project requirements
- Improve proto file compilation performance and stability

This upgrade aligns our development environment with the latest protobuf standards.

* modify package version

* refactor(deps): centralize crate versions in root Cargo.toml

- Move all dependency versions to workspace.dependencies section
- Standardize AWS SDK and related crates versions
- Update tokio, bytes, and futures crates to latest stable versions
- Ensure consistent version use across all workspace members
- Implement workspace inheritance for common dependencies

This change simplifies dependency management and ensures version consistency across the project.

* fix

* modify
2025-06-07 21:52:59 +08:00
weisd b51ee48699 update filereader/writer todo 2025-06-06 18:04:51 +08:00
weisd f199718e3b drop common/error 2025-06-06 16:34:59 +08:00
weisd c589972fa7 mc test ok 2025-06-06 16:15:26 +08:00
houseme 1f62c35846 cargo fmt 2025-06-06 15:30:27 +08:00
houseme 2fec6d161c fix: remove dep crate openssl relation 2025-06-06 15:13:55 +08:00
lygn128 3c7b66e039 bucket replication 2025-06-05 14:26:42 +00:00
overtrue 8747a91df8 feat: add comprehensive formatting rules and type inference guidelines 2025-05-28 16:04:38 +08:00
overtrue cad2aa436b fix: resolve clippy warnings for field reassignment with default in last_minute.rs tests 2025-05-28 15:14:49 +08:00
overtrue de35928496 resolve: merge conflicts in last_minute.rs tests 2025-05-28 14:48:53 +08:00
安正超 ecbd1e0bc3 fix: resolve critical namespace lock bug and improve test reliability 2025-05-28 11:51:48 +08:00
安正超 181e08cb8e fix: resolve critical namespace lock bug and improve test reliability 2025-05-28 11:46:46 +08:00
安正超 87a4ed2107 fix: resolve all Clippy warnings and test failures - Fixed field reassignment warnings in ecstore/src/file_meta.rs by using struct initialization - Fixed overly complex boolean expression in ecstore/src/utils/os/mod.rs - Fixed JWT claims extraction tests in iam module to handle error cases properly - Fixed filter_policies tests to match actual function behavior with empty cache - Fixed tracing subscriber initialization conflicts in rustfs-event-notifier tests - Added buffer length validation in ecstore read_bytes_header function - Fixed concurrent read locks test by clearing global state and improving test reliability - Removed unused imports to eliminate Clippy warnings - All tests now pass: cargo test --workspace --lib --all-features --exclude e2e_test - All Clippy warnings resolved: cargo clippy --all-targets --all-features -- -D warnings 2025-05-28 11:40:05 +08:00
安正超 a1f4abf6c3 fix: resolve all Clippy warnings across codebase - Fixed field reassignment warnings in ecstore/src/file_meta.rs by using struct initialization instead of default + field assignment - Fixed overly complex boolean expression in ecstore/src/utils/os/mod.rs by removing meaningless assertion - Replaced manual Default implementation with derive in crates/zip/src/lib.rs - Updated io::Error usage to use io::Error::other() instead of deprecated pattern - Removed useless assertions and clone-on-copy warnings - Fixed unwrap usage by replacing with expect() providing meaningful error messages - Fixed useless vec usage by using array repeat instead - All code now passes comprehensive Clippy check with --all-targets --all-features -- -D warnings 2025-05-28 11:00:07 +08:00
overtrue adb3ea171a feat: add comprehensive test coverage for common module 2025-05-27 22:58:06 +08:00
overtrue 9d594cbda6 feat: add comprehensive tests for DRWMutex and fix critical bugs 2025-05-27 21:21:47 +08:00
overtrue 2b641b7ef3 feat: add comprehensive test coverage for last_minute latency module 2025-05-27 21:03:56 +08:00
houseme a95138868e improve code 2025-05-27 19:07:09 +08:00
houseme 29ddf4dbc8 refactor: standardize constant management and fix typos (#387)
* init rustfs config

* init rustfs-utils crate

* improve code for rustfs-config crate

* add

* improve code for comment

* init rustfs config

* improve code for rustfs-config crate

* add

* improve code for comment

* Unified management of configurations and constants

* fix: modify rustfs-config crate name

* add default fn

* improve code for rustfs config

* refactor: standardize constant management and fix typos

- Create centralized constants module for global static constants
- Replace runtime format! expressions with compile-time constants
- Fix DEFAULT_PORT reference issues in configuration arguments
- Use const-str crate for compile-time string concatenation
- Update tokio dependency from 1.42.2 to 1.45.0
- Ensure consistent naming convention for configuration constants

* fix

* Update common/workers/src/workers.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-07 17:23:22 +08:00
junxiang Mu 0ac1095c70 support spec char as delimiter
Signed-off-by: junxiang Mu <1948535941@qq.com>
2025-05-06 11:10:30 +08:00
weisd cffd4fc28d merge fix/pools 2025-04-23 16:48:57 +08:00
weisd fff7e5f827 pool select idx
fixs:#346, #339, #338, #337, #336, #334

test healbucket

test get_available_pool_idx

fix
2025-04-23 15:11:43 +08:00
junxiang Mu 29fbfc3d6e move protobuf generate into bin crate
Signed-off-by: junxiang Mu <1948535941@qq.com>
2025-04-21 03:09:54 +00:00
junxiang Mu 99a5866680 degrade rand && object_store
Signed-off-by: junxiang Mu <1948535941@qq.com>
2025-04-09 03:27:03 +00:00
junxiang Mu ebf1a9d9c4 update tonic axum
Signed-off-by: junxiang Mu <1948535941@qq.com>
2025-04-09 02:41:06 +00:00
weisd 545ae79e44 move ecsotre/error to common 2025-03-25 17:42:15 +08:00
weisd 70031effa7 use http for remote read/write 2025-03-11 16:12:34 +08:00
weisd 9831d14d5e cargo fmt 2025-01-11 01:01:04 +08:00
weisd 30ef259c89 feat:cros 2025-01-07 22:00:49 +08:00
junxiang Mu c749cda90d fix remote err && lock err
Signed-off-by: junxiang Mu <1948535941@qq.com>
2024-12-30 11:38:36 +08:00
junxiang Mu a55b45c0ee tmp 5
Signed-off-by: junxiang Mu <1948535941@qq.com>
2024-12-29 20:27:05 +08:00
junxiang Mu 2f5f352f9a tmp 4
Signed-off-by: junxiang Mu <1948535941@qq.com>
2024-12-29 20:25:23 +08:00
weisd 1af62dafa4 cargo fmt 2024-12-26 00:17:41 +08:00
weisd 34b16293ba merge main 2024-12-26 00:10:11 +08:00
junxiang Mu 9c7bcd4c2f reduce panic function call
Signed-off-by: junxiang Mu <1948535941@qq.com>
2024-12-25 15:01:26 +08:00
weisd 2e0ee441cf clippy 2024-12-24 20:04:40 +08:00
weisd e725c97536 remove openssl dep 2024-12-23 19:58:37 +08:00
junxiang Mu 9dec7b1f66 rewrite decode
Signed-off-by: junxiang Mu <1948535941@qq.com>
2024-12-23 17:46:39 +08:00
junxiang Mu ab26b7c1ca refactor walk_dir grpc api
Signed-off-by: junxiang Mu <1948535941@qq.com>
2024-12-23 16:21:30 +08:00
junxiang Mu 84953bf15b refactor error framework
Signed-off-by: junxiang Mu <1948535941@qq.com>
2024-12-18 20:50:22 +08:00
weisd 64e631fcdb cargo check 2024-12-16 22:20:33 +08:00
weisd 03adb9f57e cargo fmt 2024-12-12 10:13:12 +08:00