-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from kscalelabs/ci-config
ci, codeowners, publish to crates.io
- Loading branch information
Showing
35 changed files
with
1,440 additions
and
66 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Core components | ||
/kos_core/ @codekansas @hatomist | ||
/daemon/ @codekansas @hatomist | ||
|
||
# Platform-specific code | ||
/platforms/kscale_micro/ @codekansas @hatomist | ||
/platforms/kscale_pro/ @codekansas @hatomist @WT-MM | ||
/platforms/sim/ @codekansas @hatomist | ||
/platforms/stub/ @codekansas @hatomist | ||
|
||
# Python client | ||
/pykos/ @codekansas @hatomist | ||
|
||
# Build and CI configuration | ||
/.github/ @codekansas @hatomist | ||
/toolchain/ @codekansas @hatomist | ||
*.toml @codekansas @hatomist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "protos/googleapis"] | ||
path = proto/googleapis | ||
url = https://github.com/googleapis/googleapis.git | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,39 @@ | ||
# K-Scale OS | ||
|
||
Welcome to the K-Scale Operating System! | ||
|
||
## Building | ||
|
||
### Prerequisites | ||
|
||
- `cross` toolchain | ||
|
||
### Native build | ||
Native build with stub features: | ||
```bash | ||
cargo build --features stub | ||
``` | ||
|
||
### Cross build | ||
Cross build for kbot: | ||
```bash | ||
cross build --release --target aarch64-unknown-linux-gnu --features kscale_pro | ||
``` | ||
|
||
## Running | ||
|
||
```bash | ||
RUST_LOG=debug cargo run --features stub | ||
``` | ||
|
||
## Contributing | ||
- Use `cargo fmt --all` to format the code. | ||
- Use `cargo clippy` to check for lint errors. | ||
- Use `cargo test` to run the tests. | ||
- Use `tracing` for logging. | ||
- Use `eyre` to handle errors. | ||
- No `unwrap()` or `expect()`. | ||
|
||
## License | ||
|
||
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,36 @@ | ||
[package] | ||
name = "daemon" | ||
version = "0.1.0" | ||
edition = "2021" | ||
name = "kos" | ||
version.workspace = true | ||
authors.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
description.workspace = true | ||
documentation.workspace = true | ||
readme.workspace = true | ||
|
||
[dependencies] | ||
kos_core = { path = "../kos_core" } | ||
kscale_micro = { path = "../platforms/kscale_micro", optional = true } | ||
kos_core = { version = "0.1.1", path = "../kos_core" } | ||
tokio = { version = "1", features = ["full"] } | ||
tonic = { version = "0.12", features = ["transport"] } | ||
eyre = "0.6" | ||
tracing = "0.1" | ||
tracing-subscriber = { version = "0.3", features = ["env-filter"] } | ||
tower = "0.5" | ||
|
||
sim = { path = "../platforms/sim", optional = true } | ||
stub = { path = "../platforms/stub", optional = true } | ||
kos-sim = { version = "0.1.0", path = "../platforms/sim", optional = true } | ||
kos-stub = { version = "0.1.0", path = "../platforms/stub", optional = true } | ||
kos-zeroth-01 = { version = "0.1.0", path = "../platforms/zeroth-01", optional = true } | ||
|
||
[target.'cfg(target_os = "linux")'.dependencies] | ||
kscale_pro = { path = "../platforms/kscale_pro", optional = true } | ||
|
||
# Also can add external platforms here? | ||
# e.g. third_party_platform = { git = "https://github.com/thirdparty/platform", optional = true } | ||
kos-kbot = { version = "0.1.0", path = "../platforms/kbot", optional = true } | ||
|
||
[features] | ||
kscale_micro = ["dep:kscale_micro"] | ||
kscale_pro = ["dep:kscale_pro"] | ||
sim = ["dep:sim"] | ||
stub = ["dep:stub"] | ||
default = ["stub"] | ||
kos-zeroth-01 = ["dep:kos-zeroth-01"] | ||
kos-sim = ["dep:kos-sim"] | ||
kos-stub = ["dep:kos-stub"] | ||
default = ["kos-stub"] | ||
|
||
[[bin]] | ||
name = "kos" | ||
path = "src/main.rs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright 2024 Google LLC | ||
// | ||
// Licensed 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. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.api; | ||
|
||
import "google/api/http.proto"; | ||
import "google/protobuf/descriptor.proto"; | ||
|
||
option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "AnnotationsProto"; | ||
option java_package = "com.google.api"; | ||
option objc_class_prefix = "GAPI"; | ||
|
||
extend google.protobuf.MethodOptions { | ||
// See `HttpRule`. | ||
HttpRule http = 72295728; | ||
} |
Oops, something went wrong.