-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathota.yaml
More file actions
115 lines (114 loc) · 3.21 KB
/
Copy pathota.yaml
File metadata and controls
115 lines (114 loc) · 3.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# █████
# ░░███
# ██████ ███████ ██████
# ███░░███░░░███░ ░░░░░███
# ░███ ░███ ░███ ███████
# ░███ ░███ ░███ ███ ███░░███
# ░░██████ ░░█████ ░░████████
# ░░░░░░ ░░░░░ ░░░░░░░░
#
# Copyright (C) 2026 — 2026, Ota. All Rights Reserved.
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Licensed under the Apache License, Version 2.0. See LICENSE for the full license text.
# You may not use this file except in compliance with that License.
# 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.
#
# If you need additional information or have any questions, please email: os@ota.run
version: 1
project:
name: basic-rust
description: Basic Rust repo with a Rustup-backed toolchain and Cargo tasks
type: application
toolchains:
rust:
version: "1.94.0"
components:
- rustfmt
tasks:
setup:
description: Fetch Cargo dependencies
prepare:
kind: dependency_hydration
medium: package_dependencies
source:
kind: cargo
cwd: .
requirements:
toolchains:
- rust
effects:
network: true
network_kind: dependency_hydration
build:
description: Compile the crate
command:
exe: cargo
args:
- build
depends_on:
- setup
requirements:
toolchains:
- rust
fmt:
description: Check Rust formatting through the selected toolchain
command:
exe: cargo
args:
- fmt
- --check
depends_on:
- setup
requirements:
toolchains:
- rust
test:
description: Run the Cargo test suite
command:
exe: cargo
args:
- test
depends_on:
- fmt
- build
requirements:
toolchains:
- rust
workflows:
default: verify
verify:
description: Canonical Rustup-backed setup, format, build, and verification path
setup:
task: setup
run:
task: test
notes: |
Use this when you want the repo front door instead of calling Cargo commands ad hoc.
agent:
entrypoint: setup
default_task: test
safe_tasks:
- setup
- fmt
- build
- test
verify_after_changes:
- fmt
- test
writable_paths:
- src
- tests
- docs
protected_paths:
- ota.yaml
notes: |
Use `ota workflows` to inspect the main Rust path before running direct tasks.
The selected Rust toolchain is the owner for `cargo` and `rustfmt`; do not restate those
capabilities under `runtimes` or `tools`.
Use `ota run test` after edits and keep changes small and reviewable.
Use `ota run build` to confirm the crate still compiles before broader verification.