Compare commits

...

2 Commits

Author SHA1 Message Date
19f5031ef7 Release KCL 66 (#6679)
Breaking changes:

 - All functions (even functions defined by users) must use keyword arguments, not positional arguments
2025-05-02 21:55:58 +00:00
b71eb4fb89 Simplify some test code (#6669) 2025-05-02 21:39:20 +00:00
13 changed files with 23 additions and 29 deletions

20
rust/Cargo.lock generated
View File

@ -1815,7 +1815,7 @@ dependencies = [
[[package]]
name = "kcl-bumper"
version = "0.1.65"
version = "0.1.66"
dependencies = [
"anyhow",
"clap",
@ -1826,7 +1826,7 @@ dependencies = [
[[package]]
name = "kcl-derive-docs"
version = "0.1.65"
version = "0.1.66"
dependencies = [
"Inflector",
"anyhow",
@ -1845,7 +1845,7 @@ dependencies = [
[[package]]
name = "kcl-directory-test-macro"
version = "0.1.65"
version = "0.1.66"
dependencies = [
"proc-macro2",
"quote",
@ -1854,7 +1854,7 @@ dependencies = [
[[package]]
name = "kcl-language-server"
version = "0.2.65"
version = "0.2.66"
dependencies = [
"anyhow",
"clap",
@ -1875,7 +1875,7 @@ dependencies = [
[[package]]
name = "kcl-language-server-release"
version = "0.1.65"
version = "0.1.66"
dependencies = [
"anyhow",
"clap",
@ -1895,7 +1895,7 @@ dependencies = [
[[package]]
name = "kcl-lib"
version = "0.2.65"
version = "0.2.66"
dependencies = [
"anyhow",
"approx 0.5.1",
@ -1969,7 +1969,7 @@ dependencies = [
[[package]]
name = "kcl-python-bindings"
version = "0.3.65"
version = "0.3.66"
dependencies = [
"anyhow",
"kcl-lib",
@ -1984,7 +1984,7 @@ dependencies = [
[[package]]
name = "kcl-test-server"
version = "0.1.65"
version = "0.1.66"
dependencies = [
"anyhow",
"hyper 0.14.32",
@ -1997,7 +1997,7 @@ dependencies = [
[[package]]
name = "kcl-to-core"
version = "0.1.65"
version = "0.1.66"
dependencies = [
"anyhow",
"async-trait",
@ -2011,7 +2011,7 @@ dependencies = [
[[package]]
name = "kcl-wasm-lib"
version = "0.1.65"
version = "0.1.66"
dependencies = [
"bson",
"console_error_panic_hook",

View File

@ -58,6 +58,7 @@ bump-kcl-crate-versions bump='patch':
# First build the kcl-bumper tool.
cargo build -p kcl-bumper
./target/debug/kcl-bumper --bump {{bump}}
cargo check -p kcl-bumper # this way Cargo.lock gets updated
publish-kcl version:
git tag kcl-{{version}} -m "Release kcl-{{version}}"

View File

@ -1,7 +1,7 @@
[package]
name = "kcl-bumper"
version = "0.1.65"
version = "0.1.66"
edition = "2021"
repository = "https://github.com/KittyCAD/modeling-api"
rust-version = "1.76"

View File

@ -1,7 +1,7 @@
[package]
name = "kcl-derive-docs"
description = "A tool for generating documentation from Rust derive macros"
version = "0.1.65"
version = "0.1.66"
edition = "2021"
license = "MIT"
repository = "https://github.com/KittyCAD/modeling-app"

View File

@ -1,7 +1,7 @@
[package]
name = "kcl-directory-test-macro"
description = "A tool for generating tests from a directory of kcl files"
version = "0.1.65"
version = "0.1.66"
edition = "2021"
license = "MIT"
repository = "https://github.com/KittyCAD/modeling-app"

View File

@ -1,6 +1,6 @@
[package]
name = "kcl-language-server-release"
version = "0.1.65"
version = "0.1.66"
edition = "2021"
authors = ["KittyCAD Inc <kcl@kittycad.io>"]
publish = false

View File

@ -2,7 +2,7 @@
name = "kcl-language-server"
description = "A language server for KCL."
authors = ["KittyCAD Inc <kcl@kittycad.io>"]
version = "0.2.65"
version = "0.2.66"
edition = "2021"
license = "MIT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,7 +1,7 @@
[package]
name = "kcl-lib"
description = "KittyCAD Language implementation and tools"
version = "0.2.65"
version = "0.2.66"
edition = "2021"
license = "MIT"
repository = "https://github.com/KittyCAD/modeling-app"

View File

@ -1,9 +1,4 @@
use std::{
collections::HashMap,
fs::{self, File},
io::Read as _,
path::Path,
};
use std::{collections::HashMap, fs, path::Path};
use anyhow::Result;
use base64::Engine;
@ -672,9 +667,7 @@ async fn test_code_in_topics() {
let mut join_set = JoinSet::new();
for name in LANG_TOPICS {
let filename = format!("../../docs/kcl/{}.md", name.to_lowercase().replace(' ', "-"));
let mut file = File::open(&filename).unwrap();
let mut text = String::new();
file.read_to_string(&mut text).unwrap();
let text = std::fs::read_to_string(&filename).unwrap();
for (i, (eg, attr)) in find_examples(&text, &filename).into_iter().enumerate() {
if attr == "norun" {

View File

@ -1,6 +1,6 @@
[package]
name = "kcl-python-bindings"
version = "0.3.65"
version = "0.3.66"
edition = "2021"
repository = "https://github.com/kittycad/modeling-app"
exclude = ["tests/*", "files/*", "venv/*"]

View File

@ -1,7 +1,7 @@
[package]
name = "kcl-test-server"
description = "A test server for KCL"
version = "0.1.65"
version = "0.1.66"
edition = "2021"
license = "MIT"

View File

@ -1,7 +1,7 @@
[package]
name = "kcl-to-core"
description = "Utility methods to convert kcl to engine core executable tests"
version = "0.1.65"
version = "0.1.66"
edition = "2021"
license = "MIT"
repository = "https://github.com/KittyCAD/modeling-app"

View File

@ -1,6 +1,6 @@
[package]
name = "kcl-wasm-lib"
version = "0.1.65"
version = "0.1.66"
edition = "2021"
repository = "https://github.com/KittyCAD/modeling-app"
rust-version = "1.83"