Skip to content

Commit a2dadd7

Browse files
committed
feat: crate prefixing
1 parent c23f4bc commit a2dadd7

File tree

141 files changed

+356
-340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+356
-340
lines changed

.config/nextest.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Usage:
88
# cargo nextest run # Run all tests
99
# cargo nextest run --all-features # Run with all features
10-
# cargo nextest run -p infera-management-core # Run specific crate tests
10+
# cargo nextest run -p inferadb-management-core # Run specific crate tests
1111

1212
[profile.default]
1313
# Number of retries for failing tests (0 = no retries)

.tarpaulin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ out = ["Html", "Xml"]
1717
exclude = ["*/tests/*", "*/test_fixtures/*", "*/benches/*"]
1818

1919
# Exclude files from coverage
20-
exclude-files = ["crates/*/tests/*", "crates/infera-management-test-fixtures/*"]
20+
exclude-files = ["crates/*/tests/*", "crates/inferadb-management-test-fixtures/*"]
2121

2222
# Run type
2323
run-types = ["Tests"]

AGENTS.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cargo watch -x 'run --bin inferadb-management' # Dev with auto-reload
1515

1616
# Testing
1717
cargo test # All tests
18-
cargo test --package infera-management-core # Specific crate
18+
cargo test --package inferadb-management-core # Specific crate
1919
cargo test test_create_vault # Single test
2020
cargo test -- --nocapture # With output
2121

@@ -29,14 +29,14 @@ make check # All checks
2929

3030
### Workspace Structure
3131

32-
| Crate | Purpose |
33-
| --------------------------------- | -------------------------------------- |
34-
| `infera-management` | Main binary entry point |
35-
| `infera-management-api` | REST/gRPC handlers, middleware, routes |
36-
| `infera-management-core` | Business logic, entities, repositories |
37-
| `infera-management-storage` | Storage backends (Memory, FDB planned) |
38-
| `infera-management-grpc` | Server API gRPC client |
39-
| `infera-management-test-fixtures` | Test utilities |
32+
| Crate | Purpose |
33+
| ----------------------------------- | -------------------------------------- |
34+
| `inferadb-management` | Main binary entry point |
35+
| `inferadb-management-api` | REST/gRPC handlers, middleware, routes |
36+
| `inferadb-management-core` | Business logic, entities, repositories |
37+
| `inferadb-management-storage` | Storage backends (Memory, FDB planned) |
38+
| `inferadb-management-grpc` | Server API gRPC client |
39+
| `inferadb-management-test-fixtures` | Test utilities |
4040

4141
### Layered Architecture
4242

@@ -189,9 +189,9 @@ let cookie = extract_session_cookie(response.headers());
189189

190190
### Test Organization
191191

192-
- Integration tests: `crates/infera-management-api/tests/`
192+
- Integration tests: `crates/inferadb-management-api/tests/`
193193
- Unit tests: `#[cfg(test)]` modules in source files
194-
- Fixtures: `crates/infera-management-test-fixtures/`
194+
- Fixtures: `crates/inferadb-management-test-fixtures/`
195195

196196
## Multi-Instance (FDB Required)
197197

CLAUDE.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cargo watch -x 'run --bin inferadb-management' # Dev with auto-reload
1515

1616
# Testing
1717
cargo test # All tests
18-
cargo test --package infera-management-core # Specific crate
18+
cargo test --package inferadb-management-core # Specific crate
1919
cargo test test_create_vault # Single test
2020
cargo test -- --nocapture # With output
2121

@@ -29,14 +29,14 @@ make check # All checks
2929

3030
### Workspace Structure
3131

32-
| Crate | Purpose |
33-
| --------------------------------- | -------------------------------------- |
34-
| `infera-management` | Main binary entry point |
35-
| `infera-management-api` | REST/gRPC handlers, middleware, routes |
36-
| `infera-management-core` | Business logic, entities, repositories |
37-
| `infera-management-storage` | Storage backends (Memory, FDB planned) |
38-
| `infera-management-grpc` | Server API gRPC client |
39-
| `infera-management-test-fixtures` | Test utilities |
32+
| Crate | Purpose |
33+
| ----------------------------------- | -------------------------------------- |
34+
| `inferadb-management` | Main binary entry point |
35+
| `inferadb-management-api` | REST/gRPC handlers, middleware, routes |
36+
| `inferadb-management-core` | Business logic, entities, repositories |
37+
| `inferadb-management-storage` | Storage backends (Memory, FDB planned) |
38+
| `inferadb-management-grpc` | Server API gRPC client |
39+
| `inferadb-management-test-fixtures` | Test utilities |
4040

4141
### Layered Architecture
4242

@@ -189,9 +189,9 @@ let cookie = extract_session_cookie(response.headers());
189189

190190
### Test Organization
191191

192-
- Integration tests: `crates/infera-management-api/tests/`
192+
- Integration tests: `crates/inferadb-management-api/tests/`
193193
- Unit tests: `#[cfg(test)]` modules in source files
194-
- Fixtures: `crates/infera-management-test-fixtures/`
194+
- Fixtures: `crates/inferadb-management-test-fixtures/`
195195

196196
## Multi-Instance (FDB Required)
197197

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ mod tests {
8484

8585
- Use the `Result` type for operations that can fail
8686
- Provide meaningful error messages
87-
- Use the error types defined in `infera-management-core::error`
87+
- Use the error types defined in `inferadb-management-core::error`
8888

8989
#### Documentation
9090

@@ -227,7 +227,7 @@ Before submitting a PR, ensure:
227227
cargo test
228228

229229
# Specific package
230-
cargo test --package infera-management-core
230+
cargo test --package inferadb-management-core
231231

232232
# Specific test
233233
cargo test test_name

Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[workspace]
22
members = [
3-
"crates/infera-management",
4-
"crates/infera-management-api",
5-
"crates/infera-management-core",
6-
"crates/infera-management-grpc",
7-
"crates/infera-management-storage",
8-
"crates/infera-management-test-fixtures",
9-
"crates/infera-management-types",
3+
"crates/inferadb-management",
4+
"crates/inferadb-management-api",
5+
"crates/inferadb-management-core",
6+
"crates/inferadb-management-grpc",
7+
"crates/inferadb-management-storage",
8+
"crates/inferadb-management-test-fixtures",
9+
"crates/inferadb-management-types",
1010
]
1111
resolver = "2"
1212

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ cargo run --bin inferadb-management
3636
## Architecture
3737

3838
```text
39-
infera-management # Binary
40-
├── infera-management-api # REST/gRPC handlers
41-
├── infera-management-core # Business logic, entities, repositories
42-
├── infera-management-storage # Storage backends (memory, FoundationDB)
43-
├── infera-management-grpc # Server API client
44-
├── infera-management-types # Shared type definitions
45-
└── infera-management-test-fixtures # Test utilities
39+
inferadb-management # Binary
40+
├── inferadb-management-api # REST/gRPC handlers
41+
├── inferadb-management-core # Business logic, entities, repositories
42+
├── inferadb-management-storage # Storage backends (memory, FoundationDB)
43+
├── inferadb-management-grpc # Server API client
44+
├── inferadb-management-types # Shared type definitions
45+
└── inferadb-management-test-fixtures # Test utilities
4646
```
4747

4848
**Storage**: Memory (dev/testing) or FoundationDB (production, distributed ACID)
@@ -64,7 +64,7 @@ See [config.yaml](config.yaml) for all options.
6464

6565
```bash
6666
cargo test # All tests
67-
cargo test --package infera-management-core # Specific crate
67+
cargo test --package inferadb-management-core # Specific crate
6868
cargo clippy -- -D warnings # Lint
6969
cargo fmt # Format
7070
```
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ authors.workspace = true
33
edition.workspace = true
44
homepage.workspace = true
55
license.workspace = true
6-
name = "infera-management-api"
6+
name = "inferadb-management-api"
77
publish.workspace = true
88
repository.workspace = true
99
rust-version.workspace = true
1010
version.workspace = true
1111

1212
[dependencies]
1313
# Workspace crates
14-
infera-management-core = { path = "../infera-management-core" }
15-
infera-management-grpc = { path = "../infera-management-grpc" }
16-
infera-management-storage = { path = "../infera-management-storage" }
17-
infera-management-types = { path = "../infera-management-types" }
14+
inferadb-management-core = { path = "../inferadb-management-core" }
15+
inferadb-management-grpc = { path = "../inferadb-management-grpc" }
16+
inferadb-management-storage = { path = "../inferadb-management-storage" }
17+
inferadb-management-types = { path = "../inferadb-management-types" }
1818

1919
# External dependencies
2020
anyhow = { workspace = true }
@@ -40,4 +40,4 @@ tracing = { workspace = true }
4040
uuid = { version = "1.11", features = ["serde", "v4"] }
4141

4242
[dev-dependencies]
43-
infera-management-test-fixtures = { path = "../infera-management-test-fixtures" }
43+
inferadb-management-test-fixtures = { path = "../inferadb-management-test-fixtures" }

crates/infera-management-api/src/audit.rs renamed to crates/inferadb-management-api/src/audit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use infera_management_core::{
1+
use inferadb_management_core::{
22
IdGenerator,
33
entities::{AuditEventType, AuditLog, AuditResourceType},
44
repository::AuditLogRepository,

crates/infera-management-api/src/handlers/audit_logs.rs renamed to crates/inferadb-management-api/src/handlers/audit_logs.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use axum::{
44
http::StatusCode,
55
response::{IntoResponse, Response},
66
};
7-
use infera_management_core::{AuditLogFilters, RepositoryContext};
8-
use infera_management_types::{
7+
use inferadb_management_core::{AuditLogFilters, RepositoryContext};
8+
use inferadb_management_types::{
99
dto::{
1010
AuditLogInfo, CreateAuditLogRequest, CreateAuditLogResponse, ListAuditLogsQuery,
1111
ListAuditLogsResponse,
@@ -146,8 +146,8 @@ pub async fn list_audit_logs(
146146
mod tests {
147147
use std::sync::Arc;
148148

149-
use infera_management_core::AuditEventType;
150-
use infera_management_storage::{Backend, MemoryBackend};
149+
use inferadb_management_core::AuditEventType;
150+
use inferadb_management_storage::{Backend, MemoryBackend};
151151

152152
use super::*;
153153

0 commit comments

Comments
 (0)