Skip to content

Don't rewrite it in Rust. Rewrite the 5% that's slow: profile your app, port the hot functions with your coding agent, prove they behave the same. Python, JS/TS, Ruby, Java, Kotlin, Go, PHP, C/C++, C#, R.

cargo fmt

EL4CTEOb90007f801da
diff --git a/src/python.rs b/src/python.rs
index aac8861..0e86525 100644
--- a/src/python.rs
+++ b/src/python.rs
@@ -543,8 +543,10 @@ mod tests {
#[test]
fn renders_python_values() {
- let v: Value =
- serde_json::from_str(r#"[null, true, "a", {"$bytes": "aGVsbG8="}, {"$tuple": [1, 2]}, {"$dict": [["k", 1.5]]}]"#).unwrap();
+ let v: Value = serde_json::from_str(
+ r#"[null, true, "a", {"$bytes": "aGVsbG8="}, {"$tuple": [1, 2]}, {"$dict": [["k", 1.5]]}]"#,
+ )
+ .unwrap();
assert_eq!(
py_value(&v),
r#"[None, True, "a", __import__('base64').b64decode("aGVsbG8="), (1, 2), {"k": 1.5}]"#