Skip to content

Commit 9692ac4

Browse files
committed
Bump ct-python to Rust 2024.
1 parent d6cffc3 commit 9692ac4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ct-python/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "ct-python"
33
version = "0.5.10"
44
description = "Execute Python code at compile time to generate Rust code"
55
license = "BSD-2-Clause"
6-
edition = "2018"
6+
edition = "2024"
77
repository = "https://github.com/m-ou-se/inline-python"
88
keywords = ["python", "macro", "generate", "compile-time"]
99

ct-python/examples/example.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use inline_python_macros::ct_python;
1+
use ct_python::ct_python;
22

33
ct_python! {
44
print("static A: i32 = 1;")
@@ -9,7 +9,7 @@ static DIRECTIONS: [(f64, f64); 4] = ct_python! {
99
n = 4
1010
print("[")
1111
for i in range(n):
12-
print(f"({cos(i / n * tau)}, {sin(i / n * tau)}),")
12+
print("(", cos(i / n * tau), ",", sin(i / n * tau), "),")
1313
print("]")
1414
};
1515

0 commit comments

Comments
 (0)