Skip to content

Commit

Permalink
feat(services/compfs): init compfs (#4519)
Browse files Browse the repository at this point in the history
* feat: init compfs

* docs: add license header
  • Loading branch information
George-Miao committed Apr 24, 2024
1 parent 777be89 commit 1130fab
Show file tree
Hide file tree
Showing 4 changed files with 193 additions and 10 deletions.
181 changes: 171 additions & 10 deletions core/Cargo.lock

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

3 changes: 3 additions & 0 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ services-b2 = []
services-cacache = ["dep:cacache"]
services-chainsafe = []
services-cloudflare-kv = []
services-compfs = ["dep:compio"]
services-cos = [
"dep:reqsign",
"reqsign?/services-tencent",
Expand Down Expand Up @@ -323,6 +324,8 @@ tikv-client = { version = "0.3.0", optional = true, default-features = false }
hdfs-native = { version = "0.6.0", optional = true }
# for services-surrealdb
surrealdb = { version = "1.3.0", optional = true, features = ["protocol-http"] }
# for services-compfs
compio = { version = "0.9.0", optional = true, features = ["runtime"] }

# Layers
# for layers-async-backtrace
Expand Down
16 changes: 16 additions & 0 deletions core/src/services/compfs/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// 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.
3 changes: 3 additions & 0 deletions core/src/services/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,3 +406,6 @@ mod surrealdb;
pub use surrealdb::Surrealdb;
#[cfg(feature = "services-surrealdb")]
pub use surrealdb::SurrealdbConfig;

#[cfg(feature = "services-compfs")]
mod compfs;

0 comments on commit 1130fab

Please sign in to comment.