Skip to content

Commit c5f045a

Browse files
committed
refactor: rename s3-storage to aws and url-storage to url
1 parent a5af714 commit c5f045a

40 files changed

+158
-160
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
run: cargo build --all-targets --all-features
3434
- name: Build no default features
3535
run: cargo build --all-targets --no-default-features
36-
- name: Build s3-storage
37-
run: cargo build --all-targets --features s3-storage
38-
- name: Build url-storage
39-
run: cargo build --all-targets --features url-storage
36+
- name: Build aws
37+
run: cargo build --all-targets --features aws
38+
- name: Build url
39+
run: cargo build --all-targets --features url

htsget-actix/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ homepage = "https://github.com/umccr/htsget-rs/blob/main/htsget-actix/README.md"
1111
repository = "https://github.com/umccr/htsget-rs"
1212

1313
[features]
14-
s3-storage = ["htsget-config/s3-storage", "htsget-search/s3-storage", "htsget-http/s3-storage", "htsget-axum/s3-storage", "htsget-test/s3-storage"]
15-
url-storage = ["htsget-config/url-storage", "htsget-search/url-storage", "htsget-http/url-storage", "htsget-axum/url-storage", "htsget-test/url-storage"]
14+
aws = ["htsget-config/aws", "htsget-search/aws", "htsget-http/aws", "htsget-axum/aws", "htsget-test/aws"]
15+
url = ["htsget-config/url", "htsget-search/url", "htsget-http/url", "htsget-axum/url", "htsget-test/url"]
1616
experimental = [
1717
"htsget-config/experimental",
1818
"htsget-search/experimental",

htsget-actix/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ are exposed in the public API.
5353
#### Feature flags
5454

5555
This crate has the following features:
56-
* `s3-storage`: used to enable `S3` location functionality.
57-
* `url-storage`: used to enable `Url` location functionality.
56+
* `aws`: used to enable `S3` location functionality.
57+
* `url`: used to enable `Url` location functionality.
5858
* `experimental`: used to enable experimental features that aren't necessarily part of the htsget spec, such as Crypt4GH support through `C4GHStorage`.
5959

6060
## Benchmarks

htsget-axum/Cargo.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ homepage = "https://github.com/umccr/htsget-rs/blob/main/htsget-axum/README.md"
1111
repository = "https://github.com/umccr/htsget-rs"
1212

1313
[features]
14-
s3-storage = [
15-
"htsget-config/s3-storage",
16-
"htsget-search/s3-storage",
17-
"htsget-test/s3-storage",
18-
"htsget-test/aws-mocks",
19-
"htsget-http/s3-storage"
14+
aws = [
15+
"htsget-config/aws",
16+
"htsget-search/aws",
17+
"htsget-test/aws",
18+
"htsget-test/aws",
19+
"htsget-http/aws"
2020
]
21-
url-storage = [
22-
"htsget-config/url-storage",
23-
"htsget-search/url-storage",
24-
"htsget-test/url-storage",
25-
"htsget-http/url-storage"
21+
url = [
22+
"htsget-config/url",
23+
"htsget-search/url",
24+
"htsget-test/url",
25+
"htsget-http/url"
2626
]
2727
experimental = [
2828
"htsget-config/experimental",

htsget-axum/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ This crate uses [htsget-config] for configuration.
4242
Using the default configuration, this will start a ticket server on `127.0.0.1:8080` and a data block server on `127.0.0.1:8081`
4343
with data accessible from the [`data`][data] directory. This application supports storage backends defined in [htsget-storage].
4444

45-
To use `S3Storage`, compile with the `s3-storage` feature:
45+
To use `S3Storage`, compile with the `aws` feature:
4646
```sh
47-
cargo run -p htsget-axum --features s3-storage
47+
cargo run -p htsget-axum --features aws
4848
```
4949

5050
This will start a ticket server with `S3Storage` using a bucket called `"data"`.
5151

52-
To use `UrlStorage`, compile with the `url-storage` feature.
52+
To use `UrlStorage`, compile with the `url` feature.
5353

5454
See [htsget-search] for details on how to structure files.
5555

@@ -178,8 +178,8 @@ htsget-rs. It also contains the data block server which fetches data from a `Loc
178178
#### Feature flags
179179

180180
This crate has the following features:
181-
* `s3-storage`: used to enable `S3` location functionality.
182-
* `url-storage`: used to enable `Url` location functionality.
181+
* `aws`: used to enable `S3` location functionality and any other AWS features.
182+
* `url`: used to enable `Url` location functionality.
183183
* `experimental`: used to enable experimental features that aren't necessarily part of the htsget spec, such as Crypt4GH support through `C4GHStorage`.
184184

185185
## License

htsget-config/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ homepage = "https://github.com/umccr/htsget-rs/blob/main/htsget-config/README.md
1111
repository = "https://github.com/umccr/htsget-rs"
1212

1313
[features]
14-
s3-storage = ["dep:aws-sdk-secretsmanager", "dep:aws-config", "dep:tempfile"]
15-
url-storage = ["dep:reqwest", "dep:cfg-if"]
14+
aws = ["dep:aws-sdk-secretsmanager", "dep:aws-config", "dep:tempfile"]
15+
url = ["dep:reqwest", "dep:cfg-if"]
1616
experimental = ["dep:crypt4gh", "dep:tokio", "dep:futures-util"]
1717
default = []
1818

htsget-config/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ data_server = "None"
8282
8383
> [!IMPORTANT]
8484
> Some parts of htsget-rs require extra feature flags for conditional compilation, that's why the examples specify
85-
> using `--all-features`. Notably, `--features s3-storage` enables the `S3` location type, and `--features url-storage`
85+
> using `--all-features`. Notably, `--features aws` enables the `S3` location type, and `--features url`
8686
> enabled the remote HTTP server location type. If using a subset of features, for example S3 locations only, then
8787
> a single feature can be enabled instead of using `--all-features`.
8888
@@ -387,7 +387,7 @@ backend.keys.private = "data/c4gh/keys/bob.sec" # pragma: allowlist secret
387387
backend.keys.public = "data/c4gh/keys/alice.pub"
388388
```
389389

390-
Keys can also be retrieved from [AWS Secrets Manager][secrets-manager]. Compile with the `s3-storage` feature flag and specify `keys.kind = "SecretsManager"` under
390+
Keys can also be retrieved from [AWS Secrets Manager][secrets-manager]. Compile with the `aws` feature flag and specify `keys.kind = "SecretsManager"` under
391391
`location` to fetch keys from Secrets Manager. When using Secrets Manager, the `private` and `public`
392392
correspond to ARNs or secret names in Secrets Manager storing PEM formatted keys.
393393

@@ -447,8 +447,8 @@ regex, and changing it by using a substitution string. Advanced configuration op
447447
### Feature flags
448448

449449
This crate has the following features:
450-
* `s3-storage`: used to enable `S3` location functionality.
451-
* `url-storage`: used to enable `Url` location functionality.
450+
* `aws`: used to enable `S3` location functionality and any other AWS features.
451+
* `url`: used to enable `Url` location functionality.
452452
* `experimental`: used to enable experimental features that aren't necessarily part of the htsget spec, such as Crypt4GH support through `C4GHStorage`.
453453

454454
## License

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 experimental,s3-storage -- --config htsget-config/examples/config-files/c4gh.toml`
2+
# Run with `cargo run -p htsget-axum --features experimental,aws -- --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/examples/config-files/s3_storage.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# An example for a server which uses s3 storage with data located in "bucket".
2-
# Run with `cargo run -p htsget-axum --features s3-storage -- --config htsget-config/examples/config-files/s3_storage.toml`
2+
# Run with `cargo run -p htsget-axum --features aws -- --config htsget-config/examples/config-files/s3_storage.toml`
33

44
ticket_server.cors.allow_headers = "All"
55
ticket_server.cors.allow_methods = "All"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# An example config file for a TLS ticket server that uses S3 as a storage backend.
2-
# Run with `cargo run -p htsget-axum --features s3-storage -- --config htsget-config/examples/config-files/tls_ticket_server.toml`
2+
# Run with `cargo run -p htsget-axum --features aws -- --config htsget-config/examples/config-files/tls_ticket_server.toml`
33

44
ticket_server.addr = "0.0.0.0:8080"
55
ticket_server.cors_allow_origins = "All"

0 commit comments

Comments
 (0)