Skip to content

Commit

Permalink
Improve repository structure (#506)
Browse files Browse the repository at this point in the history
Signed-off-by: RealHinome <[email protected]>
  • Loading branch information
RealHinome authored Aug 2, 2024
1 parent e6408b4 commit 38be5ca
Show file tree
Hide file tree
Showing 81 changed files with 19 additions and 127 deletions.
3 changes: 0 additions & 3 deletions .cargo/config.toml

This file was deleted.

17 changes: 0 additions & 17 deletions .deepsource.toml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
restore-keys: |
${{ runner.os }}-bazel-
- name: Build Autha
run: bazel build //autha --strip=always --compilation_mode opt
run: bazel build //api/autha --strip=always --compilation_mode opt
shell: bash
- name: Run tests
run: bazel test //autha:autha_test --strip=always --compilation_mode opt
run: bazel test //api/autha:autha_test --strip=always --compilation_mode opt
shell: bash
- name: Login to GitHub Container Registry
if: ${{ github.ref == 'refs/heads/master' }}
Expand All @@ -44,5 +44,5 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to docker.io
if: ${{ github.ref == 'refs/heads/master' }}
run: bazel run //autha:push --strip=always --compilation_mode opt
run: bazel run //api/autha:push --strip=always --compilation_mode opt
shell: bash
16 changes: 8 additions & 8 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module(
name = "autha",
version = "3.0",
version = "3.1",
)

bazel_dep(name = "platforms", version = "0.0.8")
Expand Down Expand Up @@ -38,14 +38,14 @@ crate = use_extension(
)
crate.from_cargo(
name = "crate_index",
cargo_lockfile = "//:Cargo.lock",
cargo_lockfile = "//api:Cargo.lock",
manifests = [
"//:Cargo.toml",
"//autha-limits:Cargo.toml",
"//autha:Cargo.toml",
"//crypto:Cargo.toml",
"//db:Cargo.toml",
"//image_processor:Cargo.toml",
"//api:Cargo.toml",
"//api/autha-limits:Cargo.toml",
"//api/autha:Cargo.toml",
"//api/crypto:Cargo.toml",
"//api/db:Cargo.toml",
"//api/image_processor:Cargo.toml",
],
)
use_repo(crate, "crate_index")
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions api/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions autha/BUILD.bazel → api/autha/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ proto_library(
)

CUSTOM_CRATES = [
"//autha-limits",
"//crypto",
"//db",
"//image_processor",
"//api/autha-limits",
"//api/crypto",
"//api/db",
"//api/image_processor",
":proto_build_script",
]

Expand Down Expand Up @@ -106,6 +106,6 @@ oci_push(
repository = "ghcr.io/gravitalia/autha",
remote_tags = [
"latest",
"3.0.0",
"3.1.0",
]
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ rust_library(
name = "image_processor",
srcs = glob(["src/**/*.rs"]),
aliases = aliases(),
deps = ["//crypto"] + all_crate_deps(
deps = ["//api/crypto"] + all_crate_deps(
normal = True,
),
proc_macro_deps = all_crate_deps(
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/quick_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ database:
pool_size: 3
```
You can see more paramters on [/config.yaml](https://github.com/Gravitalia/Autha/blob/master/config.yaml).
You can see more paramters on [/config.yaml](https://github.com/Gravitalia/Autha/blob/master/docker/config.yaml).
2. Create a `docker-compose.yaml` file.
Write
Expand Down
61 changes: 0 additions & 61 deletions flake.lock

This file was deleted.

28 changes: 0 additions & 28 deletions flake.nix

This file was deleted.

File renamed without changes.
File renamed without changes.

0 comments on commit 38be5ca

Please sign in to comment.