9f0ac5f6fd
Macro for parsing KCL at Rust compile-time ( #1049 )
...
Macro for parsing KCL at Rust compile-time
This adds a new `parse_kcl!` macro which takes a string as input. It parses the string into KCL source code _at compile-time_. Invalid KCL will make your Rust project fail to compile.
Fixes https://github.com/KittyCAD/modeling-app/issues/1018
2023-11-10 10:36:21 -06:00
08dbd2e9c3
Bump web-sys from 0.3.64 to 0.3.65 in /src/wasm-lib ( #1052 )
...
Bumps [web-sys](https://github.com/rustwasm/wasm-bindgen ) from 0.3.64 to 0.3.65.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
---
updated-dependencies:
- dependency-name: web-sys
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 06:49:33 -05:00
2e2ba5adbd
Bump tauri-plugin-fs-extra from 6865299
to 61e8625
in /src-tauri ( #1054 )
...
Bumps [tauri-plugin-fs-extra](https://github.com/tauri-apps/plugins-workspace ) from `6865299` to `61e8625`.
- [Release notes](https://github.com/tauri-apps/plugins-workspace/releases )
- [Commits](6865299149...61e862597e
)
---
updated-dependencies:
- dependency-name: tauri-plugin-fs-extra
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 06:49:12 -05:00
a21dbf1055
Bump tokio from 1.33.0 to 1.34.0 in /src-tauri ( #1053 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.33.0 to 1.34.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.33.0...tokio-1.34.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 05:24:59 -05:00
5ecb176467
Bump tokio from 1.33.0 to 1.34.0 in /src/wasm-lib ( #1051 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.33.0 to 1.34.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.33.0...tokio-1.34.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 05:24:40 -05:00
66135636ec
Bump wasm-bindgen-futures from 0.4.37 to 0.4.38 in /src/wasm-lib ( #1050 )
...
Bumps [wasm-bindgen-futures](https://github.com/rustwasm/wasm-bindgen ) from 0.4.37 to 0.4.38.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
---
updated-dependencies:
- dependency-name: wasm-bindgen-futures
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 05:24:10 -05:00
685a16545c
Bump @vitejs/plugin-react from 4.0.4 to 4.1.1 ( #1035 )
...
Bumps [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react ) from 4.0.4 to 4.1.1.
- [Release notes](https://github.com/vitejs/vite-plugin-react/releases )
- [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite-plugin-react/commits/v4.1.1/packages/plugin-react )
---
updated-dependencies:
- dependency-name: "@vitejs/plugin-react"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 05:20:45 -05:00
9adb15ee93
Bump @headlessui/react from 1.7.16 to 1.7.17 ( #1037 )
...
Bumps [@headlessui/react](https://github.com/tailwindlabs/headlessui/tree/HEAD/packages/@headlessui-react ) from 1.7.16 to 1.7.17.
- [Release notes](https://github.com/tailwindlabs/headlessui/releases )
- [Changelog](https://github.com/tailwindlabs/headlessui/blob/main/packages/@headlessui-react/CHANGELOG.md )
- [Commits](https://github.com/tailwindlabs/headlessui/commits/@headlessui/react@v1.7.17/packages/@headlessui-react )
---
updated-dependencies:
- dependency-name: "@headlessui/react"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 05:20:02 -05:00
a8c4c97d79
Bump fuse.js from 6.6.2 to 7.0.0 ( #1036 )
...
Bumps [fuse.js](https://github.com/krisk/Fuse ) from 6.6.2 to 7.0.0.
- [Release notes](https://github.com/krisk/Fuse/releases )
- [Changelog](https://github.com/krisk/Fuse/blob/main/CHANGELOG.md )
- [Commits](https://github.com/krisk/Fuse/compare/v6.6.2...v7.0.0 )
---
updated-dependencies:
- dependency-name: fuse.js
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 05:19:46 -05:00
39e8e1f259
Bump eslint-plugin-css-modules from 2.11.0 to 2.12.0 ( #1034 )
...
Bumps [eslint-plugin-css-modules](https://github.com/atfzl/eslint-plugin-css-modules ) from 2.11.0 to 2.12.0.
- [Release notes](https://github.com/atfzl/eslint-plugin-css-modules/releases )
- [Commits](https://github.com/atfzl/eslint-plugin-css-modules/compare/v2.11.0...v2.12.0 )
---
updated-dependencies:
- dependency-name: eslint-plugin-css-modules
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 05:18:09 -05:00
1672c1fd1f
Impl databake for all AST node types ( #1047 )
...
Databake doesn't have any derive for HashMap, so for NonCodeMeta I decided to skip serializing the non_code_nodes. This should be OK for now.
See <https://github.com/unicode-org/icu4x/issues/4266 > for the Databake hashmap issue.
2023-11-09 16:39:12 -06:00
6ec5881985
top level expressions fix ( #1046 )
...
#1033 top level expressions fix
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2023-11-09 13:08:11 -08:00
7272cc9fbd
Describe Rust version for devs ( #1044 )
...
Fixes #1042
2023-11-09 17:01:52 +00:00
b925ed9b65
KCL stdlib and circle function ( #1029 )
...
Allows stdlib functions to be written as KCL, not as Rust.
Rust stdlib functions will hereafter be referred to as "core" not "std".
Right now the only stdlib function I implemented is a circle function (it's a wrapper around the core arc function which sets the arc's start/end to 0 and 360 respectively). I know I want to change this function as soon as KCL has enums, which is my next task. So, I don't want users to start using this right away. To that end, I've named this function "unstable_stdlib_circle" not "circle". Once the function is ready to be stabilized, I can rename it to just "circle".
Note that this PR modifies the existing "sketch and extrude a cylinder" KCL test so that instead of using a user-defined circle function, it uses the unstable_stdlib_circle function now. And the twenty-twenty tests pass, so we know my stdlib is working.
https://github.com/KittyCAD/modeling-app/issues/922
2023-11-09 09:58:20 -06:00
0db5db2181
Bump js-sys from 0.3.64 to 0.3.65 in /src/wasm-lib ( #980 )
...
Bumps [js-sys](https://github.com/rustwasm/wasm-bindgen ) from 0.3.64 to 0.3.65.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
---
updated-dependencies:
- dependency-name: js-sys
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-08 23:41:53 -06:00
898e3db9d1
AST function nodes no longer have stdlib function members ( #1031 )
...
* AST function nodes no longer have stdlib function members
IMO the AST should not need an actual pointer to a stdlib function -- that is a completely separate concern from the AST.
Instead, the AST nodes can just store function names, and the executor will have a stdlib which it can look up those names in.
* Fix tests
* Update snapshot tests
2023-11-08 20:23:59 -06:00
d337ac2546
Test with a circle function ( #1030 )
2023-11-08 15:06:41 -06:00
371d8e08f7
Refactor the call_fn fn to be more readable ( #1028 )
2023-11-08 13:44:31 -06:00
338c43a29d
Fix auto-version in nightly builds ( #1026 )
...
* WIP Fix auto-version in nightly builds
Fixes #1015
* WIP
* Revert "WIP"
This reverts commit 7838bf1298
.
* Need to update src-tauri/tauri.release.conf.json after CI changes
* Fixes just to test
* Clean up after tests
2023-11-08 13:58:37 +00:00
52bb5a2657
Bump @sentry/react from 7.65.0 to 7.77.0 ( #977 )
...
Bumps [@sentry/react](https://github.com/getsentry/sentry-javascript ) from 7.65.0 to 7.77.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases )
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-javascript/compare/7.65.0...7.77.0 )
---
updated-dependencies:
- dependency-name: "@sentry/react"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-08 10:39:40 +00:00
1b6a06d266
Bump vscode-languageserver-protocol from 3.17.3 to 3.17.5 ( #978 )
...
Bumps [vscode-languageserver-protocol](https://github.com/Microsoft/vscode-languageserver-node/tree/HEAD/protocol ) from 3.17.3 to 3.17.5.
- [Commits](https://github.com/Microsoft/vscode-languageserver-node/commits/release/types/3.17.5/protocol )
---
updated-dependencies:
- dependency-name: vscode-languageserver-protocol
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-08 05:28:24 -05:00
c68d4778a5
Bump @tauri-apps/api from 1.5.0 to 1.5.1 ( #979 )
...
Bumps [@tauri-apps/api](https://github.com/tauri-apps/tauri ) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/tauri-apps/tauri/releases )
- [Commits](https://github.com/tauri-apps/tauri/compare/@tauri-apps/api-v1.5...@tauri-apps/api-v1.5.1 )
---
updated-dependencies:
- dependency-name: "@tauri-apps/api"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-08 05:28:01 -05:00
a8abea4fb5
Bump eslint from 8.46.0 to 8.53.0 ( #1001 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 8.46.0 to 8.53.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v8.46.0...v8.53.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-08 05:27:13 -05:00
a0678d22a8
fix epsilon bug ( #1025 )
2023-11-08 09:27:53 +00:00
acbfae2e65
Bump wasm-bindgen from 0.2.87 to 0.2.88 in /src/wasm-lib ( #981 )
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.87 to 0.2.88.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.87...0.2.88 )
---
updated-dependencies:
- dependency-name: wasm-bindgen
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 23:56:23 -06:00
1e1bec6a8a
Bump winnow ( #1024 )
2023-11-07 23:55:45 -06:00
06462b5a65
Bump syn from 2.0.38 to 2.0.39 in /src/wasm-lib ( #1000 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.38 to 2.0.39.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.38...2.0.39 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 22:45:58 -06:00
2f292fb1be
Bump tauri-plugin-fs-extra from 11048fd
to 6865299
in /src-tauri ( #1023 )
...
Bumps [tauri-plugin-fs-extra](https://github.com/tauri-apps/plugins-workspace ) from `11048fd` to `6865299`.
- [Release notes](https://github.com/tauri-apps/plugins-workspace/releases )
- [Commits](11048fd997...6865299149
)
---
updated-dependencies:
- dependency-name: tauri-plugin-fs-extra
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 22:45:20 -06:00
8184e7b376
Bump serde from 1.0.190 to 1.0.192 in /src-tauri ( #1009 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.190 to 1.0.192.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.190...v1.0.192 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 22:45:03 -06:00
b1084cbf80
Bump serde from 1.0.190 to 1.0.192 in /src/wasm-lib ( #1012 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.190 to 1.0.192.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.190...v1.0.192 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 22:44:55 -06:00
548b45905e
Cut release v0.11.3 ( #1020 )
...
cut release v0.11.3
v0.11.3
2023-11-08 12:57:00 +11:00
141fd2f3f1
fix variables panel and others ( #1021 )
2023-11-08 01:27:43 +00:00
604d931962
selections fix follow up ( #1019 )
2023-11-07 23:10:30 +00:00
b1668410f8
Neaten up stdlib code ( #1017 )
2023-11-07 12:12:18 -06:00
13176cec38
Cut release v0.11.2 ( #1005 )
...
* Cut release v0.11.2
* Replace 'release' with '*' for artifact upload
* New logic to prevent top-level artifact.zip changes
* Fix upload
---------
Co-authored-by: Kurt Hutten <k.hutten@protonmail.ch >
v0.11.2
2023-11-07 05:20:26 -05:00
3a59ae13b6
fix selections ( #1013 )
2023-11-07 07:21:32 +00:00
57c2481943
unused imports ( #1011 )
2023-11-07 03:29:50 +00:00
a1c555c51e
clear errors on good parse ( #1008 )
2023-11-07 02:02:44 +00:00
4d520541be
Build release & sign only on merge / release / release PR ( #991 )
...
* Add env variable for release || schedule || Cut out v PR
* Skip Windows, Apple, and Tauri Updater signing
* Add tauri args to bypass updater on debug
* Trying to address includeRelease and includeDebug issues
* WIP
* Clean up, fix bool eval
* -c to --config
* Remove src-tauri
* inline config
* Cleanup
* Remove concurrency block
* Test release
* Escape backslash
* Clean up
* Add back concurrency and BUILD_RELEASE eval
* Back to build:wasm (no speed impr noticed)
* Adam's suggestions
Co-authored-by: Adam Chalmers <adam.chalmers@kittycad.io >
* New logic to prevent top-level artifact.zip changes
---------
Co-authored-by: Adam Chalmers <adam.chalmers@kittycad.io >
2023-11-06 19:51:32 -05:00
82586f002b
Test Jess's KCL error ( #1004 )
2023-11-06 14:01:51 -06:00
4bd08f7444
safe parse ( #996 )
...
* safe parse
* use safe parse on mouse up, stream
2023-11-06 06:47:45 +00:00
6b2603b1c4
don't overwrite current file on onboarding-replay ( #1003 )
...
don't over write file on onboarding
2023-11-06 04:03:21 +00:00
af49bebde3
compare formated asts before execute ( #1002 )
2023-11-06 03:43:01 +00:00
ca056996fd
stop double execute on project open ( #997 )
2023-11-06 14:33:19 +11:00
34163da361
start of fixing changing files and cleaning up after execute ( #897 )
...
* start of fixing changing files and cleaning up after execute
* stop constraints from leaving artifacts
* don't write file on initial load
2023-11-06 11:49:13 +11:00
7c22bac638
Remove unwraps from binary expression algorithm ( #992 )
2023-11-03 13:30:19 -05:00
37a65b166b
Fix silly mistakes in previous CI.yml PRs ( #988 )
...
* Fix silly mistakes in previous CI.yml PRs
This is what happens when I code before my morning matcha
Part of #987
2023-11-02 12:34:38 -05:00
1189f272ba
Use debug builds for wasm-pack on PRs ( #986 )
2023-11-02 09:55:58 -05:00
ca5bc880dc
Build tauri app in debug mode on PRs, release mode on releases ( #985 )
...
Build tauri app in debug mode on PRs, release mode on merges.
Release builds are very slow and should only be used for actual releases. Fast debug builds should be used for CI on PRs.
2023-11-02 09:55:36 -05:00
828daba304
Tweak Codespell CI ( #975 )
...
Ensure codespell CI job actually catches typos
2023-11-01 23:35:41 +00:00