diff --git a/.github/workflows/cpp-test.yaml b/.github/workflows/cpp-test.yaml index 06d0a92..fcd368d 100644 --- a/.github/workflows/cpp-test.yaml +++ b/.github/workflows/cpp-test.yaml @@ -46,6 +46,8 @@ jobs: components: clippy, rustfmt - name: Build run: | + # Set cargo build target on macos + export MACOSX_DEPLOYMENT_TARGET=12.0 mkdir build cd build cmake .. diff --git a/.github/workflows/dotnet-test.yaml b/.github/workflows/dotnet-test.yaml index 25e93aa..8f046e6 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-beta.2.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json + dotnet nuget push KclLib.0.10.0-rc.1.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json diff --git a/Cargo.toml b/Cargo.toml index ef5f50f..98e07f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kcl-lang" -version = "0.10.0-beta.2" +version = "0.10.0-rc.1" 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-beta.2" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-rc.1" } diff --git a/README.md b/README.md index b4f17f9..f36cd30 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-beta.2-SNAPSHOT + 0.10.0-rc.1-SNAPSHOT ``` @@ -187,7 +187,7 @@ This way you'll be able to import the above dependency to use the SDK. com.kcl kcl-lib - 0.10.0-beta.2-SNAPSHOT + 0.10.0-rc.1-SNAPSHOT ``` @@ -221,7 +221,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-beta.2 + GIT_TAG v0.10.0-rc.1 SOURCE_SUBDIR cpp ) FetchContent_MakeAvailable(kcl-lib) diff --git a/c/Cargo.toml b/c/Cargo.toml index 74cb1f7..a8f5ad1 100644 --- a/c/Cargo.toml +++ b/c/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kcl-lib-c" -version = "0.10.0-beta.2" +version = "0.10.0-rc.1" 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-beta.2" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-rc.1" } diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index f633b5f..a582129 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -48,6 +48,8 @@ foreach(EXE IN LISTS EXECUTABLES) target_link_libraries(${EXE} PRIVATE userenv ws2_32 bcrypt) endif() if(APPLE) + find_library(CORESERVICES_LIB CoreServices) + target_link_libraries(${EXE} PRIVATE ${CORESERVICES_LIB}) target_link_libraries(${EXE} PRIVATE "-framework CoreFoundation -framework Security") endif() endforeach() diff --git a/cpp/Cargo.toml b/cpp/Cargo.toml index b5bfeda..7849b5d 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-beta.2" +version = "0.10.0-rc.1" [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-beta.2" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-rc.1" } [build-dependencies] cxx-build = "1.0" diff --git a/cpp/README.md b/cpp/README.md index 5f12ca6..7c564c5 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-beta.2 + GIT_TAG v0.10.0-rc.1 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-beta.2 +git checkout v0.10.0-rc.1 ``` ```shell diff --git a/dotnet/Cargo.toml b/dotnet/Cargo.toml index d324ddf..fe742de 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-beta.2" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-rc.1" } diff --git a/dotnet/KclLib/KclLib.csproj b/dotnet/KclLib/KclLib.csproj index 6c3707f..b4508b1 100644 --- a/dotnet/KclLib/KclLib.csproj +++ b/dotnet/KclLib/KclLib.csproj @@ -11,7 +11,7 @@ KclLib KclLib - 0.10.0-beta.2 + 0.10.0-rc.1 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 0bb117f..0607caa 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/install/install.go b/go/install/install.go index a909612..72de296 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-beta.2" +const KCLVM_VERSION = "v0.10.0-rc.1" 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 04ff7c1..aca78bb 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 eb21f70..da1ebca 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 54cc452..49cb91b 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 f1508ba..1803ceb 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 8cd329f..cd05b71 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 fbe4b11..08d5ca5 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 8cd329f..cd05b71 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 fbe4b11..08d5ca5 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/java/Cargo.toml b/java/Cargo.toml index b130721..51a4eb1 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-beta.2" } -kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-beta.2" } -kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-beta.2" } +kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-rc.1" } +kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-rc.1" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-rc.1" } diff --git a/java/README.md b/java/README.md index 8618d45..78396fd 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-beta.2-SNAPSHOT + 0.10.0-rc.1-SNAPSHOT ``` diff --git a/java/pom.xml b/java/pom.xml index b050f1c..29c2059 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -5,7 +5,7 @@ com.kcl kcl-lib - 0.10.0-beta.2-SNAPSHOT + 0.10.0-rc.1-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 b130721..51a4eb1 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-beta.2" } -kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-beta.2" } -kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-beta.2" } +kclvm-parser = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-rc.1" } +kclvm-sema = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-rc.1" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-rc.1" } diff --git a/kotlin/README.md b/kotlin/README.md index 37181c8..9188c77 100644 --- a/kotlin/README.md +++ b/kotlin/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-kotlin - 0.10.0-beta.2-SNAPSHOT + 0.10.0-rc.1-SNAPSHOT ``` diff --git a/kotlin/pom.xml b/kotlin/pom.xml index 08f1f56..67d5c20 100644 --- a/kotlin/pom.xml +++ b/kotlin/pom.xml @@ -5,7 +5,7 @@ com.kcl kcl-lib-kotlin - 0.10.0-beta.2-SNAPSHOT + 0.10.0-rc.1-SNAPSHOT KCL Arifact Library for Kotlin KCL is an open-source constraint-based record and functional language mainly diff --git a/lua/Cargo.toml b/lua/Cargo.toml index af6c4ce..cc49318 100644 --- a/lua/Cargo.toml +++ b/lua/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kcl-lib-lua" -version = "0.10.0-beta.2" +version = "0.10.0-rc.1" edition = "2021" publish = false @@ -16,4 +16,4 @@ mlua = { version = "0.9", features = [ "module", "macros", ], default-features = false, optional = true } -kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-beta.2" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-rc.1" } diff --git a/nodejs/Cargo.toml b/nodejs/Cargo.toml index 715ee04..dba6a08 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-beta.2" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-rc.1" } # 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 7beef22..5e3c4fa 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-beta.2" + "kcl-lib": "0.10.0-rc.1" } } diff --git a/nodejs/npm/darwin-arm64/package-lock.json b/nodejs/npm/darwin-arm64/package-lock.json index 4780e4b..cce4039 100644 --- a/nodejs/npm/darwin-arm64/package-lock.json +++ b/nodejs/npm/darwin-arm64/package-lock.json @@ -1,12 +1,12 @@ { "name": "@kcl-lang/lib-darwin-arm64", - "version": "0.10.0-beta.2", + "version": "0.10.0-rc.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@kcl-lang/lib-darwin-arm64", - "version": "0.10.0-beta.2", + "version": "0.10.0-rc.1", "cpu": [ "arm64" ], diff --git a/nodejs/npm/darwin-arm64/package.json b/nodejs/npm/darwin-arm64/package.json index 7b11bb5..7be93ec 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-beta.2", + "version": "0.10.0-rc.1", "os": [ "darwin" ], diff --git a/nodejs/npm/darwin-x64/package.json b/nodejs/npm/darwin-x64/package.json index e7bc1d5..94da5ab 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-beta.2", + "version": "0.10.0-rc.1", "os": [ "darwin" ], diff --git a/nodejs/npm/linux-arm64-gnu/package.json b/nodejs/npm/linux-arm64-gnu/package.json index 4273c0f..e0b76e5 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-beta.2", + "version": "0.10.0-rc.1", "os": [ "linux" ], diff --git a/nodejs/npm/linux-x64-gnu/package.json b/nodejs/npm/linux-x64-gnu/package.json index a31c70d..4cf956d 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-beta.2", + "version": "0.10.0-rc.1", "os": [ "linux" ], diff --git a/nodejs/npm/win32-arm64-msvc/package.json b/nodejs/npm/win32-arm64-msvc/package.json index 9bad0ab..1862bce 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-beta.2", + "version": "0.10.0-rc.1", "os": [ "win32" ], diff --git a/nodejs/npm/win32-x64-msvc/package.json b/nodejs/npm/win32-x64-msvc/package.json index 4054975..d34cfe2 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-beta.2", + "version": "0.10.0-rc.1", "os": [ "win32" ], diff --git a/nodejs/package.json b/nodejs/package.json index 36836df..bfb3ba0 100644 --- a/nodejs/package.json +++ b/nodejs/package.json @@ -1,6 +1,6 @@ { "name": "kcl-lib", - "version": "0.10.0-beta.2", + "version": "0.10.0-rc.1", "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 963a775..74ad11c 100644 --- a/python/Cargo.toml +++ b/python/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kcl-python-lib" -version = "0.10.0-beta.2" +version = "0.10.0-rc.1" 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-beta.2" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-rc.1" } pyo3 = "0.20.1" diff --git a/spec/spec.proto b/spec/spec.proto index 85ac4bb..0c173b8 100644 --- a/spec/spec.proto +++ b/spec/spec.proto @@ -106,10 +106,10 @@ service KclvmService { /// { /// "jsonrpc": "2.0", /// "result": { - /// "version": "0.10.0-beta.2", + /// "version": "0.10.0-rc.1", /// "checksum": "c020ab3eb4b9179219d6837a57f5d323", /// "git_sha": "1a9a72942fffc9f62cb8f1ae4e1d5ca32aa1f399", - /// "version_info": "Version: 0.10.0-beta.2-c020ab3eb4b9179219d6837a57f5d323\nPlatform: aarch64-apple-darwin\nGitCommit: 1a9a72942fffc9f62cb8f1ae4e1d5ca32aa1f399" + /// "version_info": "Version: 0.10.0-rc.1-c020ab3eb4b9179219d6837a57f5d323\nPlatform: aarch64-apple-darwin\nGitCommit: 1a9a72942fffc9f62cb8f1ae4e1d5ca32aa1f399" /// }, /// "id": 1 /// } diff --git a/swift/Cargo.toml b/swift/Cargo.toml index 74cb1f7..a8f5ad1 100644 --- a/swift/Cargo.toml +++ b/swift/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kcl-lib-c" -version = "0.10.0-beta.2" +version = "0.10.0-rc.1" 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-beta.2" } +kclvm-api = { git = "https://github.com/kcl-lang/kcl", version = "0.10.0-rc.1" } diff --git a/wasm/kcl.wasm b/wasm/kcl.wasm index 77e7cae..8e713d4 100644 Binary files a/wasm/kcl.wasm and b/wasm/kcl.wasm differ diff --git a/wasm/package.json b/wasm/package.json index ccccd58..df9b0b9 100644 --- a/wasm/package.json +++ b/wasm/package.json @@ -1,6 +1,6 @@ { "name": "@kcl-lang/wasm-lib", - "version": "0.10.0-beta.2", + "version": "0.10.0-rc.1", "description": "KCL WASM module", "files": [ "kcl.wasm",