diff --git a/.github/workflows/dotnet-test.yaml b/.github/workflows/dotnet-test.yaml index 868055b..6137f48 100644 --- a/.github/workflows/dotnet-test.yaml +++ b/.github/workflows/dotnet-test.yaml @@ -176,4 +176,4 @@ jobs: if: "startsWith(github.ref, 'refs/tags/')" run: | cd dotnet/KclLib/bin/Release - dotnet nuget push KclLib.0.10.0-alpha.1.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json + dotnet nuget push KclLib.0.10.0-alpha.2.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json diff --git a/.github/workflows/go-test.yaml b/.github/workflows/go-test.yaml index 46e4160..797dab1 100644 --- a/.github/workflows/go-test.yaml +++ b/.github/workflows/go-test.yaml @@ -33,5 +33,13 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.22 + - name: Ready msys2 + uses: msys2/setup-msys2@v2 + with: + msystem: MINGW64 + update: true + install: git mingw-w64-x86_64-toolchain + path-type: inherit + if: matrix.os == 'windows-latest' - name: Go code test run: go test ./... diff --git a/Cargo.toml b/Cargo.toml index b970ee9..a4cb9f1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kcl-lang" -version = "0.10.0-alpha.1" +version = "0.10.0-alpha.2" edition = "2021" readme = "README.md" documentation = "kcl-lang.io" @@ -11,4 +11,4 @@ license = "Apache-2.0" [dependencies] anyhow = "1" -kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.1" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.2" } diff --git a/README.md b/README.md index bbf7b79..557fd19 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ This way you'll be able to import the above dependency to use the SDK. com.kcl kcl-lib - 0.10.0-alpha.1-SNAPSHOT + 0.10.0-alpha.2-SNAPSHOT ``` @@ -191,7 +191,7 @@ For CMake, you can use FetchContent to add KCL C++ Lib to your project. FetchContent_Declare( kcl-lib GIT_REPOSITORY https://github.com/kcl-lang/lib.git - GIT_TAG v0.10.0-alpha.1 + GIT_TAG v0.10.0-alpha.2 SOURCE_SUBDIR cpp ) FetchContent_MakeAvailable(kcl-lib) diff --git a/c/Cargo.toml b/c/Cargo.toml index 24c4dfd..1fa255b 100644 --- a/c/Cargo.toml +++ b/c/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kcl-lib-c" -version = "0.10.0-alpha.1" +version = "0.10.0-alpha.2" edition = "2021" publish = false @@ -12,4 +12,4 @@ doc = false cbindgen = "0.26.0" [dependencies] -kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.1" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.2" } diff --git a/cpp/Cargo.toml b/cpp/Cargo.toml index dff42d1..befb27f 100644 --- a/cpp/Cargo.toml +++ b/cpp/Cargo.toml @@ -2,7 +2,7 @@ name = "kcl-lib-cpp" publish = false edition = "2021" -version = "0.10.0-alpha.1" +version = "0.10.0-alpha.2" [lib] crate-type = ["staticlib"] @@ -10,7 +10,7 @@ crate-type = ["staticlib"] [dependencies] anyhow = "1.0" cxx = "1.0" -kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.1" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.2" } [build-dependencies] cxx-build = "1.0" diff --git a/cpp/README.md b/cpp/README.md index 9117a7c..6eb5945 100644 --- a/cpp/README.md +++ b/cpp/README.md @@ -12,7 +12,7 @@ You can use FetchContent to add KCL C++ Lib to your project. FetchContent_Declare( kcl-lib GIT_REPOSITORY https://github.com/kcl-lang/lib.git - GIT_TAG v0.10.0-alpha.1 + GIT_TAG v0.10.0-alpha.2 SOURCE_SUBDIR cpp ) FetchContent_MakeAvailable(kcl-lib) @@ -24,7 +24,7 @@ Or you can download the source code and add it to your project. mkdir third_party cd third_party git clone https://github.com/kcl-lang/lib.git -git checkout v0.10.0-alpha.1 +git checkout v0.10.0-alpha.2 ``` ```shell diff --git a/dotnet/Cargo.toml b/dotnet/Cargo.toml index cecbf28..e4c8c84 100644 --- a/dotnet/Cargo.toml +++ b/dotnet/Cargo.toml @@ -8,4 +8,4 @@ crate-type = ["cdylib"] doc = false [dependencies] -kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.1" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.2" } diff --git a/dotnet/KclLib/KclLib.csproj b/dotnet/KclLib/KclLib.csproj index 5ed564e..3b2da5b 100644 --- a/dotnet/KclLib/KclLib.csproj +++ b/dotnet/KclLib/KclLib.csproj @@ -11,7 +11,7 @@ KclLib KclLib - 0.10.0-alpha.1 + 0.10.0-alpha.2 true snupkg https://github.com/kcl-lang diff --git a/dotnet/examples/exec-program/exec-program.csproj b/dotnet/examples/exec-program/exec-program.csproj index 3f909fb..18ff6b2 100644 --- a/dotnet/examples/exec-program/exec-program.csproj +++ b/dotnet/examples/exec-program/exec-program.csproj @@ -9,7 +9,7 @@ - + diff --git a/go/env/env.go b/go/env/env.go deleted file mode 100644 index 814a214..0000000 --- a/go/env/env.go +++ /dev/null @@ -1,9 +0,0 @@ -package env - -import "os" - -// Enable the fast eval mode. -func EnableFastEvalMode() { - // Set the fast eval mode for KCL - os.Setenv("KCL_FAST_EVAL", "1") -} diff --git a/go/install/install.go b/go/install/install.go index 191106c..9a70453 100644 --- a/go/install/install.go +++ b/go/install/install.go @@ -10,7 +10,7 @@ import ( lib "kcl-lang.io/lib/go/lib" ) -const KCLVM_VERSION = "v0.10.0-alpha.1" +const KCLVM_VERSION = "v0.10.0-alpha.2" func findPath(name string) string { if path, err := exec.LookPath(name); err == nil { diff --git a/go/lib/darwin-amd64/libkclvm_cli_cdylib.dylib b/go/lib/darwin-amd64/libkclvm_cli_cdylib.dylib index f8a70b3..286ebf6 100755 Binary files a/go/lib/darwin-amd64/libkclvm_cli_cdylib.dylib and b/go/lib/darwin-amd64/libkclvm_cli_cdylib.dylib differ diff --git a/go/lib/darwin-arm64/libkclvm_cli_cdylib.dylib b/go/lib/darwin-arm64/libkclvm_cli_cdylib.dylib index d1905eb..d336854 100755 Binary files a/go/lib/darwin-arm64/libkclvm_cli_cdylib.dylib and b/go/lib/darwin-arm64/libkclvm_cli_cdylib.dylib differ diff --git a/go/lib/linux-amd64/libkclvm_cli_cdylib.so b/go/lib/linux-amd64/libkclvm_cli_cdylib.so index 1ce4d10..e3b0134 100755 Binary files a/go/lib/linux-amd64/libkclvm_cli_cdylib.so and b/go/lib/linux-amd64/libkclvm_cli_cdylib.so differ diff --git a/go/lib/linux-arm64/libkclvm_cli_cdylib.so b/go/lib/linux-arm64/libkclvm_cli_cdylib.so index 633d888..78e4b1a 100755 Binary files a/go/lib/linux-arm64/libkclvm_cli_cdylib.so and b/go/lib/linux-arm64/libkclvm_cli_cdylib.so differ diff --git a/go/lib/windows-amd64/kclvm_cli_cdylib.dll b/go/lib/windows-amd64/kclvm_cli_cdylib.dll index 181c3a3..78b94df 100644 Binary files a/go/lib/windows-amd64/kclvm_cli_cdylib.dll and b/go/lib/windows-amd64/kclvm_cli_cdylib.dll differ diff --git a/go/lib/windows-amd64/kclvm_cli_cdylib.lib b/go/lib/windows-amd64/kclvm_cli_cdylib.lib index 3e33234..fbe4b11 100644 Binary files a/go/lib/windows-amd64/kclvm_cli_cdylib.lib and b/go/lib/windows-amd64/kclvm_cli_cdylib.lib differ diff --git a/go/lib/windows-arm64/kclvm_cli_cdylib.dll b/go/lib/windows-arm64/kclvm_cli_cdylib.dll index 181c3a3..78b94df 100644 Binary files a/go/lib/windows-arm64/kclvm_cli_cdylib.dll and b/go/lib/windows-arm64/kclvm_cli_cdylib.dll differ diff --git a/go/lib/windows-arm64/kclvm_cli_cdylib.lib b/go/lib/windows-arm64/kclvm_cli_cdylib.lib index 3e33234..fbe4b11 100644 Binary files a/go/lib/windows-arm64/kclvm_cli_cdylib.lib and b/go/lib/windows-arm64/kclvm_cli_cdylib.lib differ diff --git a/go/native/client_test.go b/go/native/client_test.go index 0c260e4..32dc62d 100644 --- a/go/native/client_test.go +++ b/go/native/client_test.go @@ -11,7 +11,6 @@ import ( "time" "kcl-lang.io/lib/go/api" - "kcl-lang.io/lib/go/env" "kcl-lang.io/lib/go/plugin" ) @@ -23,9 +22,6 @@ sum = hello.add(option("a"), option("b")) ` func init() { - // Set the lib path - // Enable the fast eval mode. - env.EnableFastEvalMode() // Add a plugin named hello plugin.RegisterPlugin(plugin.Plugin{ Name: "hello", diff --git a/java/Cargo.toml b/java/Cargo.toml index 2efc438..452d1dd 100644 --- a/java/Cargo.toml +++ b/java/Cargo.toml @@ -18,6 +18,6 @@ serde = { version = "1", features = ["derive"] } once_cell = "1.19.0" lazy_static = "1.4.0" -kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.1" } -kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.1" } -kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.1" } +kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.2" } +kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.2" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.2" } diff --git a/java/README.md b/java/README.md index 88e82e0..1991cbe 100644 --- a/java/README.md +++ b/java/README.md @@ -26,7 +26,7 @@ This way you'll be able to import the above dependency to use the SDK. com.kcl kcl-lib - 0.10.0-alpha.1-SNAPSHOT + 0.10.0-alpha.2-SNAPSHOT ``` diff --git a/java/pom.xml b/java/pom.xml index 80fbb12..ccadfae 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -5,7 +5,7 @@ com.kcl kcl-lib - 0.10.0-alpha.1-SNAPSHOT + 0.10.0-alpha.2-SNAPSHOT KCL Arifact Library for Java KCL is an open-source constraint-based record and functional language mainly diff --git a/kotlin/Cargo.toml b/kotlin/Cargo.toml index 2efc438..452d1dd 100644 --- a/kotlin/Cargo.toml +++ b/kotlin/Cargo.toml @@ -18,6 +18,6 @@ serde = { version = "1", features = ["derive"] } once_cell = "1.19.0" lazy_static = "1.4.0" -kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.1" } -kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.1" } -kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.1" } +kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.2" } +kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.2" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.2" } diff --git a/kotlin/pom.xml b/kotlin/pom.xml index a39426a..dd6c883 100644 --- a/kotlin/pom.xml +++ b/kotlin/pom.xml @@ -5,7 +5,7 @@ com.kcl kcl-lib-kotlin - 0.10.0-alpha.1-SNAPSHOT + 0.10.0-alpha.2-SNAPSHOT KCL Arifact Library for Kotlin KCL is an open-source constraint-based record and functional language mainly diff --git a/nodejs/Cargo.toml b/nodejs/Cargo.toml index 721dce1..a71da32 100644 --- a/nodejs/Cargo.toml +++ b/nodejs/Cargo.toml @@ -7,7 +7,7 @@ version = "0.0.0" crate-type = ["cdylib"] [dependencies] -kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.1" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.2" } # Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix napi = { version = "2.12.2", default-features = false, features = ["napi4"] } napi-derive = "2.12.2" diff --git a/nodejs/examples/exec-program/package.json b/nodejs/examples/exec-program/package.json index c049000..a804852 100644 --- a/nodejs/examples/exec-program/package.json +++ b/nodejs/examples/exec-program/package.json @@ -12,6 +12,6 @@ "dist/" ], "dependencies": { - "kcl-lib": "0.10.0-alpha.1" + "kcl-lib": "0.10.0-alpha.2" } } diff --git a/nodejs/npm/darwin-arm64/package-lock.json b/nodejs/npm/darwin-arm64/package-lock.json new file mode 100644 index 0000000..0a378ea --- /dev/null +++ b/nodejs/npm/darwin-arm64/package-lock.json @@ -0,0 +1,22 @@ +{ + "name": "@kcl-lang/lib-darwin-arm64", + "version": "0.10.0-alpha.2", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@kcl-lang/lib-darwin-arm64", + "version": "0.10.0-alpha.2", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + } + } +} diff --git a/nodejs/npm/darwin-arm64/package.json b/nodejs/npm/darwin-arm64/package.json index 0a1a14f..9f53841 100644 --- a/nodejs/npm/darwin-arm64/package.json +++ b/nodejs/npm/darwin-arm64/package.json @@ -1,7 +1,7 @@ { "name": "@kcl-lang/lib-darwin-arm64", "repository": "https://github.com/kcl-lang/lib", - "version": "0.10.0-alpha.1", + "version": "0.10.0-alpha.2", "os": [ "darwin" ], diff --git a/nodejs/npm/darwin-x64/package.json b/nodejs/npm/darwin-x64/package.json index c601806..0f676e1 100644 --- a/nodejs/npm/darwin-x64/package.json +++ b/nodejs/npm/darwin-x64/package.json @@ -1,7 +1,7 @@ { "name": "@kcl-lang/lib-darwin-x64", "repository": "https://github.com/kcl-lang/lib", - "version": "0.10.0-alpha.1", + "version": "0.10.0-alpha.2", "os": [ "darwin" ], diff --git a/nodejs/npm/linux-arm64-gnu/package.json b/nodejs/npm/linux-arm64-gnu/package.json index 9ec7476..527b14f 100644 --- a/nodejs/npm/linux-arm64-gnu/package.json +++ b/nodejs/npm/linux-arm64-gnu/package.json @@ -1,7 +1,7 @@ { "name": "@kcl-lang/lib-linux-arm64-gnu", "repository": "https://github.com/kcl-lang/lib", - "version": "0.10.0-alpha.1", + "version": "0.10.0-alpha.2", "os": [ "linux" ], diff --git a/nodejs/npm/linux-x64-gnu/package.json b/nodejs/npm/linux-x64-gnu/package.json index f08b994..3bac6b8 100644 --- a/nodejs/npm/linux-x64-gnu/package.json +++ b/nodejs/npm/linux-x64-gnu/package.json @@ -1,7 +1,7 @@ { "name": "@kcl-lang/lib-linux-x64-gnu", "repository": "https://github.com/kcl-lang/lib", - "version": "0.10.0-alpha.1", + "version": "0.10.0-alpha.2", "os": [ "linux" ], diff --git a/nodejs/npm/win32-arm64-msvc/package.json b/nodejs/npm/win32-arm64-msvc/package.json index a8d8aa3..5923cde 100644 --- a/nodejs/npm/win32-arm64-msvc/package.json +++ b/nodejs/npm/win32-arm64-msvc/package.json @@ -1,7 +1,7 @@ { "name": "@kcl-lang/lib-win32-arm64-msvc", "repository": "https://github.com/kcl-lang/lib", - "version": "0.10.0-alpha.1", + "version": "0.10.0-alpha.2", "os": [ "win32" ], diff --git a/nodejs/npm/win32-x64-msvc/package.json b/nodejs/npm/win32-x64-msvc/package.json index bdc3a7e..ab20595 100644 --- a/nodejs/npm/win32-x64-msvc/package.json +++ b/nodejs/npm/win32-x64-msvc/package.json @@ -1,7 +1,7 @@ { "name": "@kcl-lang/lib-win32-x64-msvc", "repository": "https://github.com/kcl-lang/lib", - "version": "0.10.0-alpha.1", + "version": "0.10.0-alpha.2", "os": [ "win32" ], diff --git a/nodejs/package.json b/nodejs/package.json index e7cdfba..115c71d 100644 --- a/nodejs/package.json +++ b/nodejs/package.json @@ -1,6 +1,6 @@ { "name": "kcl-lib", - "version": "0.10.0-alpha.1", + "version": "0.10.0-alpha.2", "repository": "https://github.com/kcl-lang/lib", "license": "Apache-2.0", "main": "index.js", diff --git a/python/Cargo.toml b/python/Cargo.toml index 9c6432c..f99a432 100644 --- a/python/Cargo.toml +++ b/python/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kcl-python-lib" -version = "0.10.0-alpha.1" +version = "0.10.0-alpha.2" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -8,5 +8,5 @@ edition = "2021" crate-type = ["cdylib"] [dependencies] -kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.1" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.2" } pyo3 = "0.20.1" diff --git a/spec/spec.proto b/spec/spec.proto index 0ee2856..fea00fa 100644 --- a/spec/spec.proto +++ b/spec/spec.proto @@ -106,10 +106,10 @@ service KclvmService { /// { /// "jsonrpc": "2.0", /// "result": { - /// "version": "0.10.0-alpha.1", + /// "version": "0.10.0-alpha.2", /// "checksum": "c020ab3eb4b9179219d6837a57f5d323", /// "git_sha": "1a9a72942fffc9f62cb8f1ae4e1d5ca32aa1f399", - /// "version_info": "Version: 0.10.0-alpha.1-c020ab3eb4b9179219d6837a57f5d323\nPlatform: aarch64-apple-darwin\nGitCommit: 1a9a72942fffc9f62cb8f1ae4e1d5ca32aa1f399" + /// "version_info": "Version: 0.10.0-alpha.2-c020ab3eb4b9179219d6837a57f5d323\nPlatform: aarch64-apple-darwin\nGitCommit: 1a9a72942fffc9f62cb8f1ae4e1d5ca32aa1f399" /// }, /// "id": 1 /// } diff --git a/swift/Cargo.toml b/swift/Cargo.toml index 24c4dfd..1fa255b 100644 --- a/swift/Cargo.toml +++ b/swift/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kcl-lib-c" -version = "0.10.0-alpha.1" +version = "0.10.0-alpha.2" edition = "2021" publish = false @@ -12,4 +12,4 @@ doc = false cbindgen = "0.26.0" [dependencies] -kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.1" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-alpha.2" } diff --git a/wasm/examples/node/package-lock.json b/wasm/examples/node/package-lock.json index 848c638..4662fa1 100644 --- a/wasm/examples/node/package-lock.json +++ b/wasm/examples/node/package-lock.json @@ -8,7 +8,7 @@ "name": "run-kcl-wasm", "version": "1.0.0", "dependencies": { - "@kcl-lang/wasm-lib": "0.10.0-alpha.1" + "@kcl-lang/wasm-lib": "0.10.0-alpha.2" } }, "node_modules/.pnpm/@protobufjs+aspromise@1.1.2/node_modules/@protobufjs/aspromise": { @@ -117,8 +117,8 @@ "license": "MIT" }, "node_modules/@kcl-lang/wasm-lib": { - "version": "0.10.0-alpha.1", - "resolved": "https://registry.npmjs.org/@kcl-lang/wasm-lib/-/wasm-lib-0.10.0-alpha.1.tgz", + "version": "0.10.0-alpha.2", + "resolved": "https://registry.npmjs.org/@kcl-lang/wasm-lib/-/wasm-lib-0.10.0-alpha.2.tgz", "integrity": "sha512-+ExBvutGtt2MBJNUQv+gLArOeM2eGq/meJG+nd8jBn5W4zQpF/V/gq2fcsHgydNU5dHu6ilBI0mgbO1L3Gsu3w==", "bundleDependencies": [ "wasi-js" diff --git a/wasm/examples/node/package.json b/wasm/examples/node/package.json index 29b5353..3bda58d 100644 --- a/wasm/examples/node/package.json +++ b/wasm/examples/node/package.json @@ -12,6 +12,6 @@ "dist/" ], "dependencies": { - "@kcl-lang/wasm-lib": "0.10.0-alpha.1" + "@kcl-lang/wasm-lib": "0.10.0-alpha.2" } } diff --git a/wasm/kcl.wasm b/wasm/kcl.wasm index af60a0d..7b21deb 100644 Binary files a/wasm/kcl.wasm and b/wasm/kcl.wasm differ diff --git a/wasm/package-lock.json b/wasm/package-lock.json index 8b43a7a..27b1a65 100644 --- a/wasm/package-lock.json +++ b/wasm/package-lock.json @@ -1,12 +1,12 @@ { "name": "@kcl-lang/wasm-lib", - "version": "0.10.0-alpha.1", + "version": "0.10.0-alpha.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@kcl-lang/wasm-lib", - "version": "0.10.0-alpha.1", + "version": "0.10.0-alpha.2", "bundleDependencies": [ "wasi-js" ], diff --git a/wasm/package.json b/wasm/package.json index 48eb462..fb057db 100644 --- a/wasm/package.json +++ b/wasm/package.json @@ -1,6 +1,6 @@ { "name": "@kcl-lang/wasm-lib", - "version": "0.10.0-alpha.1", + "version": "0.10.0-alpha.2", "description": "KCL WASM module", "files": [ "kcl.wasm",