Skip to content

Commit b6bb78f

Browse files
committed
Fix terradev-telemetry IterationValue API and terradev-mcp-optimizer PyO3 API
1 parent 346b396 commit b6bb78f

24 files changed

Lines changed: 31 additions & 14 deletions

File tree

rust/terradev-artifact-verification/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ fn terradev_artifact_verification(_py: Python, m: &PyModule) -> PyResult<()> {
1515
#[pyclass]
1616
pub struct PyArtifactVerifier;
1717

18+
#[allow(non_local_definitions)]
1819
#[pymethods]
1920
impl PyArtifactVerifier {
2021
#[new]

rust/terradev-authentication/src/hmac.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ use crate::encoding::{encode_parameters, percent_encode_rfc3986};
22
use crate::types::{AlibabaCredentials, OVHCredentials, SignatureResult};
33
use hmac::{Hmac, Mac};
44
use sha1::Sha1;
5-
use sha2::Sha256;
65
use std::time::{SystemTime, UNIX_EPOCH};
76

87
type HmacSha1 = Hmac<Sha1>;
9-
type HmacSha256 = Hmac<Sha256>;
108

119
pub struct AlibabaSigner;
1210

rust/terradev-authentication/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ fn terradev_authentication(_py: Python, m: &PyModule) -> PyResult<()> {
1919
#[pyclass]
2020
pub struct PyAlibabaSigner;
2121

22+
#[allow(non_local_definitions)]
2223
#[pymethods]
2324
impl PyAlibabaSigner {
2425
#[new]
@@ -45,6 +46,7 @@ impl PyAlibabaSigner {
4546
#[pyclass]
4647
pub struct PyOVHSigner;
4748

49+
#[allow(non_local_definitions)]
4850
#[pymethods]
4951
impl PyOVHSigner {
5052
#[new]

rust/terradev-command-executor/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ pub struct PyCommandExecutor {
106106
inner: CommandExecutor,
107107
}
108108

109+
#[allow(non_local_definitions)]
109110
#[pymethods]
110111
impl PyCommandExecutor {
111112
#[new]

rust/terradev-config-validator/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub struct PyConfigValidator {
1818
inner: ConfigValidator,
1919
}
2020

21+
#[allow(non_local_definitions)]
2122
#[pymethods]
2223
impl PyConfigValidator {
2324
#[new]

rust/terradev-cost-calculator/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub struct PyCostCalculator {
1818
inner: CostCalculator,
1919
}
2020

21+
#[allow(non_local_definitions)]
2122
#[pymethods]
2223
impl PyCostCalculator {
2324
#[new]

rust/terradev-cost-scaler/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ pub struct CostScaler {
3333
scaling_window_hours: i64,
3434
}
3535

36+
#[allow(non_local_definitions)]
3637
#[pymethods]
3738
impl CostScaler {
3839
#[new]

rust/terradev-dag-executor/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ pub struct DAGExecutor {
5151
max_workers: usize,
5252
}
5353

54+
#[allow(non_local_definitions)]
5455
#[pymethods]
5556
impl DAGExecutor {
5657
#[new]

rust/terradev-egress-optimizer/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub struct PyEgressGraph {
1919
inner: EgressGraph,
2020
}
2121

22+
#[allow(non_local_definitions)]
2223
#[pymethods]
2324
impl PyEgressGraph {
2425
#[new]

rust/terradev-event-bus/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub struct PyEventBus {
1717
inner: EventBus,
1818
}
1919

20+
#[allow(non_local_definitions)]
2021
#[pymethods]
2122
impl PyEventBus {
2223
#[new]

0 commit comments

Comments
 (0)