Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:add tls support fot memcached #5471

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ OPENDAL_SLED_TREE=sled-tree
# memcached
OPENDAL_MEMCACHED_ENDPOINT=tcp://127.0.0.1:11211
OPENDAL_MEMCACHED_ROOT=/
OPENDAL_MEMCACHED_ENABLE_TLS=true
OPENDAL_MEMCACHED_TLS_KEY=/
OPENDAL_MEMCACHED_TLS_CERT=/
# webdav
OPENDAL_WEBDAV_ROOT=/tmp/opendal/
OPENDAL_WEBDAV_ENDPOINT=http://127.0.0.1:8080
Expand Down
79 changes: 58 additions & 21 deletions core/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ rust-version = "1.75"
version = "0.50.1"

[features]
default = ["reqwest/rustls-tls", "executors-tokio", "services-memory"]
default = ["reqwest/rustls-tls", "executors-tokio", "services-memory" ,"services-memcached"]
ozewr marked this conversation as resolved.
Show resolved Hide resolved

# Build test utils or not.
#
Expand Down Expand Up @@ -159,7 +159,12 @@ services-ipmfs = []
services-koofr = []
services-lakefs = []
services-libsql = ["dep:hrana-client-proto"]
services-memcached = ["dep:bb8"]
services-memcached = [
"dep:bb8",
"dep:tokio-rustls",
"dep:rustls",
"dep:rustls-native-certs",
]
services-memory = []
services-mini-moka = ["dep:mini-moka"]
services-moka = ["dep:moka"]
Expand Down Expand Up @@ -359,6 +364,13 @@ monoio = { version = "0.2.4", optional = true, features = [
"unlinkat",
"renameat",
] }
# for services-memcached
rustls = { version = "0.23.15", default-features = false, features = [
"std",
], optional = true }
rustls-native-certs = {version = "0.8.1", optional = true}
tokio-rustls = { version = "0.26.1", optional = true }


# Layers
# for layers-async-backtrace
Expand Down
Loading
Loading