• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tari-project / tari / 18097567115

29 Sep 2025 12:50PM UTC coverage: 58.554% (-2.3%) from 60.88%
18097567115

push

github

web-flow
chore(ci): switch rust toolchain to stable (#7524)

Description
switch rust toolchain to stable

Motivation and Context
use stable rust toolchain


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Chores**
* Standardized Rust toolchain on stable across CI workflows for more
predictable builds.
* Streamlined setup by removing unnecessary components and aligning
toolchain configuration with environment variables.
  * Enabled an environment flag to improve rustup behavior during CI.
* Improved coverage workflow consistency with dynamic toolchain
selection.

* **Tests**
* Removed nightly-only requirements, simplifying test commands and
improving compatibility.
* Expanded CI triggers to include ci-* branches for better pre-merge
validation.
* Maintained existing job logic while improving reliability and
maintainability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

66336 of 113291 relevant lines covered (58.55%)

551641.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

63.16
/base_layer/transaction_components/src/transaction_components/transaction_kernel_version.rs
1
// Copyright 2022 The Tari Project
2
// SPDX-License-Identifier: BSD-3-Clause
3

4
use std::convert::TryFrom;
5

6
use borsh::{BorshDeserialize, BorshSerialize};
7
use serde::{Deserialize, Serialize};
8

9
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize, PartialOrd, BorshSerialize, BorshDeserialize)]
×
10
#[repr(u8)]
11
#[borsh(use_discriminant = true)]
12
pub enum TransactionKernelVersion {
13
    V0 = 0,
14
}
15

16
impl TransactionKernelVersion {
17
    pub fn get_current_version() -> Self {
829✔
18
        Self::V0
829✔
19
    }
829✔
20

21
    pub fn as_u8(self) -> u8 {
×
22
        self as u8
×
23
    }
×
24
}
25

26
impl Default for TransactionKernelVersion {
27
    fn default() -> Self {
×
28
        Self::get_current_version()
×
29
    }
×
30
}
31

32
impl TryFrom<u8> for TransactionKernelVersion {
33
    type Error = String;
34

35
    fn try_from(value: u8) -> Result<Self, Self::Error> {
12✔
36
        match value {
12✔
37
            0 => Ok(TransactionKernelVersion::V0),
11✔
38
            v => Err(format!("Unknown kernel version {v}!")),
1✔
39
        }
40
    }
12✔
41
}
42

43
#[cfg(test)]
44
mod test {
45
    use super::*;
46

47
    #[test]
48
    fn test_try_from() {
1✔
49
        assert_eq!(TransactionKernelVersion::try_from(0), Ok(TransactionKernelVersion::V0));
1✔
50
        assert!(TransactionKernelVersion::try_from(1).is_err());
1✔
51
    }
1✔
52
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc