Skip to content

Commit d60770b

Browse files
committed
refactor!: rename c4gh-experimental to experimental
1 parent 41fb189 commit d60770b

File tree

25 files changed

+59
-58
lines changed

25 files changed

+59
-58
lines changed

htsget-actix/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ repository = "https://github.com/umccr/htsget-rs"
1313
[features]
1414
s3-storage = ["htsget-config/s3-storage", "htsget-search/s3-storage", "htsget-http/s3-storage", "htsget-axum/s3-storage", "htsget-test/s3-storage"]
1515
url-storage = ["htsget-config/url-storage", "htsget-search/url-storage", "htsget-http/url-storage", "htsget-axum/url-storage", "htsget-test/url-storage"]
16-
c4gh-experimental = [
17-
"htsget-config/c4gh-experimental",
18-
"htsget-search/c4gh-experimental",
19-
"htsget-http/c4gh-experimental",
20-
"htsget-axum/c4gh-experimental",
21-
"htsget-test/c4gh-experimental"
16+
experimental = [
17+
"htsget-config/experimental",
18+
"htsget-search/experimental",
19+
"htsget-http/experimental",
20+
"htsget-axum/experimental",
21+
"htsget-test/experimental"
2222
]
2323
default = []
2424

htsget-actix/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This crate is used for running a local instance of htsget-rs. It is based on:
3131

3232
## Usage
3333

34-
This application has the same functionality as [htsget-axum]. To use it, following the [htsget-axum][htsget-axum-usage] instructions, and
34+
This application has the same functionality as [htsget-axum]. To use it, following the [htsget-axum][htsget-axum] instructions, and
3535
replace any calls to `htsget-axum` with `htsget-actix`.
3636

3737
It is recommended to use [htsget-axum] because it better fits with the rest of [htsget-rs]. For example [htsget-actix]
@@ -50,7 +50,7 @@ are exposed in the public API.
5050
This crate has the following features:
5151
* `s3-storage`: used to enable `S3Storage` functionality.
5252
* `url-storage`: used to enable `UrlStorage` functionality.
53-
* `c4gh-experimental`: used to enable `C4GHStorage` functionality.
53+
* `experimental`: used to enable `C4GHStorage` functionality.
5454

5555
## Benchmarks
5656
Benchmarks for this crate written using [Criterion.rs][criterion-rs], and aim to compare the performance of this crate with the
@@ -76,6 +76,7 @@ cargo bench -p htsget-axum -- HEAVY
7676
[criterion-rs]: https://github.com/bheisler/criterion.rs
7777
[htsget-refserver]: https://github.com/ga4gh/htsget-refserver
7878
[data-vcf]: ../data/vcf
79+
[htsget-axum]: ../htsget-axum/README.md#usage
7980

8081
## License
8182

htsget-axum/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ url-storage = [
2424
"htsget-test/url-storage",
2525
"htsget-http/url-storage"
2626
]
27-
c4gh-experimental = [
28-
"htsget-config/c4gh-experimental",
29-
"htsget-search/c4gh-experimental",
30-
"htsget-test/c4gh-experimental",
31-
"htsget-http/c4gh-experimental"
27+
experimental = [
28+
"htsget-config/experimental",
29+
"htsget-search/experimental",
30+
"htsget-test/experimental",
31+
"htsget-http/experimental"
3232
]
3333
default = []
3434

htsget-axum/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ for more details on how to configure this.
108108
Run the server with the following to enable Crypt4GH support using the [example config][example-config]:
109109

110110
```sh
111-
cargo run -p htsget-axum --features c4gh-experimental -- --config htsget-config/examples/config-files/c4gh.toml
111+
cargo run -p htsget-axum --features experimental -- --config htsget-config/examples/config-files/c4gh.toml
112112
```
113113

114114
Crypt4GH encrypted byte ranges can be queried:
@@ -171,7 +171,7 @@ htsget-rs. It also contains the data block server which fetches data from a `Loc
171171
This crate has the following features:
172172
* `s3-storage`: used to enable `S3Storage` functionality.
173173
* `url-storage`: used to enable `UrlStorage` functionality.
174-
* `c4gh-experimental`: used to enable `C4GHStorage` functionality.
174+
* `experimental`: used to enable `C4GHStorage` functionality.
175175

176176
## License
177177

htsget-config/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repository = "https://github.com/umccr/htsget-rs"
1313
[features]
1414
s3-storage = []
1515
url-storage = ["dep:reqwest"]
16-
c4gh-experimental = ["dep:crypt4gh"]
16+
experimental = ["dep:crypt4gh"]
1717
default = []
1818

1919
[dependencies]

htsget-config/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ See the MinIO deployment [example][minio-deployment] for more information on how
491491
### Crypt4GH
492492

493493
There is experimental support for serving [Crypt4GH][c4gh] encrypted files. This can be enabled by compiling with the
494-
`c4gh-experimental` feature flag.
494+
`experimental` feature flag.
495495

496496
This allows htsget-rs to read Crypt4GH files and serve them encrypted, directly to the client. In the process of
497497
serving the data, htsget-rs will decrypt the headers of the Crypt4GH files and reencrypt them so that the client can read
@@ -535,7 +535,7 @@ regex, and changing it by using a substitution string.
535535
This crate has the following features:
536536
* `s3-storage`: used to enable `S3Storage` functionality.
537537
* `url-storage`: used to enable `UrlStorage` functionality.
538-
* `c4gh-experimental`: used to enable `C4GHStorage` functionality.
538+
* `experimental`: used to enable `C4GHStorage` functionality.
539539

540540
## License
541541

htsget-config/examples/config-files/c4gh.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# An example of running htsget-rs with Crypt4GH enabled.
2-
# Run with `cargo run -p htsget-axum --features c4gh-experimental -- --config htsget-config/examples/config-files/c4gh.toml`
2+
# Run with `cargo run -p htsget-axum --features experimental -- --config htsget-config/examples/config-files/c4gh.toml`
33

44
ticket_server_addr = "127.0.0.1:8080"
55
data_server_addr = "127.0.0.1:8081"

htsget-config/src/storage/object/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//! Defines the type of object used by storage.
22
//!
33
4-
#[cfg(feature = "c4gh-experimental")]
4+
#[cfg(feature = "experimental")]
55
pub mod c4gh;
66

7-
#[cfg(feature = "c4gh-experimental")]
7+
#[cfg(feature = "experimental")]
88
use crate::storage::object::c4gh::C4GHKeys;
99
use serde::{Deserialize, Serialize};
1010

@@ -15,7 +15,7 @@ use serde::{Deserialize, Serialize};
1515
pub enum ObjectType {
1616
#[default]
1717
Regular,
18-
#[cfg(feature = "c4gh-experimental")]
18+
#[cfg(feature = "experimental")]
1919
C4GH {
2020
#[serde(flatten, skip_serializing)]
2121
keys: C4GHKeys,

htsget-http/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repository = "https://github.com/umccr/htsget-rs"
1313
[features]
1414
s3-storage = ["htsget-config/s3-storage", "htsget-search/s3-storage", "htsget-test/s3-storage"]
1515
url-storage = ["htsget-config/url-storage", "htsget-search/url-storage", "htsget-test/url-storage"]
16-
c4gh-experimental = ["htsget-config/c4gh-experimental", "htsget-search/c4gh-experimental", "htsget-test/c4gh-experimental"]
16+
experimental = ["htsget-config/experimental", "htsget-search/experimental", "htsget-test/experimental"]
1717
default = []
1818

1919
[dependencies]

htsget-http/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ These functions take query and endpoint information, and process it using [htsge
3838
This crate has the following features:
3939
* `s3-storage`: used to enable `S3Storage` functionality.
4040
* `url-storage`: used to enable `UrlStorage` functionality.
41-
* `c4gh-experimental`: used to enable `C4GHStorage` functionality.
41+
* `experimental`: used to enable `C4GHStorage` functionality.
4242

4343
[warp]: https://github.com/seanmonstar/warp
4444
[htsget-search]: ../htsget-search

0 commit comments

Comments
 (0)