improve specification versioning
Signed-off-by: Onur Özkan <work@onurozkan.dev>
This commit is contained in:
1 parent
ceba320a96
commit
4c6ee111e8
8 files changed
+64
-28
No files matched your search
@@ -1,6 +1,6 @@
|
||||
use kaptan_spec::spec;
|
||||
|
||||
#[spec("fail_missing_sidecar.v0.1.0.spec.md")]
|
||||
#[spec("fail_missing_sidecar.spec.md")]
|
||||
struct MissingSpec;
|
||||
|
||||
fn main() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: couldn't read `$DIR/tests/ui/fail_missing_sidecar.v0.1.0.spec.md`: No such file or directory (os error 2)
|
||||
error: couldn't read `$DIR/tests/ui/fail_missing_sidecar.spec.md`: No such file or directory (os error 2)
|
||||
--> tests/ui/fail_missing_sidecar.rs:3:1
|
||||
|
|
||||
3 | #[spec("fail_missing_sidecar.v0.1.0.spec.md")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 | #[spec("fail_missing_sidecar.spec.md")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
@@ -1,6 +1,6 @@
|
||||
use kaptan_spec::spec;
|
||||
|
||||
#[spec("flight_core_contract.v0.1.0.spec.md")]
|
||||
#[spec("flight_core_contract.spec.md")]
|
||||
struct FlightCore;
|
||||
|
||||
fn main() {
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
# --- version: 0.1.0 ---
|
||||
|
||||
---
|
||||
title: Flight core contract
|
||||
status: in-progress
|
||||
owners:
|
||||
- Flight Systems <flight@example.com>
|
||||
---
|
||||
|
||||
## Contract
|
||||
|
||||
Initial control contract.
|
||||
|
||||
# --- version: 0.2.0 ---
|
||||
|
||||
---
|
||||
title: Flight core contract
|
||||
status: implemented
|
||||
owners:
|
||||
- Flight Systems <flight@example.com>
|
||||
---
|
||||
|
||||
## Contract
|
||||
|
||||
Revised control contract.
|
||||
@@ -1,10 +0,0 @@
|
||||
---
|
||||
title: Flight core contract
|
||||
status: in-progress
|
||||
owners:
|
||||
- Test Name <name@test.com>
|
||||
---
|
||||
|
||||
# Summary
|
||||
|
||||
Minimal spec for compile-time linkage testing.
|
||||
Reference in new issue
Block a user