Skip to content

Commit 347168f

Browse files
committed
Extract SDK CI to sdks.yml
Add a dedicated SDK workflow (.github/workflows/sdks.yml) that contains TypeScript/Dart SDK test and publish jobs, and remove the SDK-specific test/publish steps from the release workflow. Update release.yml to stop generating SDK badge files and simplify the README update step (also fix a stray typo/garbage line). Update README links to point at the new sdks workflow badges. Bump flutter_rust_bridge to 2.12.0 (Cargo.toml + Cargo.lock) and include regenerated bridge and SDK artifacts (frb_generated.rs, generated Dart/TypeScript bindings and native libs) to match the new version.
1 parent 292b728 commit 347168f

16 files changed

Lines changed: 794 additions & 550 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 505 deletions
Large diffs are not rendered by default.

.github/workflows/sdks.yml

Lines changed: 738 additions & 0 deletions
Large diffs are not rendered by default.

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ flate2 = "1.1.9"
204204
tar = "0.4"
205205
zip = { version = "8.2.0", default-features = false, features = ["deflate"] }
206206
miniz_oxide = "0.9.1"
207-
flutter_rust_bridge = "=2.11.1"
207+
flutter_rust_bridge = "=2.12.0"
208208
rust-embed = { version = "8.11.0", features = ["compression", "include-exclude"] }
209209
mime_guess = "2.0"
210210
kalamdb-configs = { path = "backend/crates/kalamdb-configs" }

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<p align="center"><strong>SDKs</strong></p>
1616

1717
<p align="center">
18-
<a href="https://github.com/jamals86/KalamDB/actions/workflows/release.yml"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/jamals86/KalamDB/main/.github/badges/sdk-typescript-tests.json" alt="TypeScript SDK Tests" /></a>
19-
<a href="https://github.com/jamals86/KalamDB/actions/workflows/release.yml"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/jamals86/KalamDB/main/.github/badges/sdk-dart-tests.json" alt="Dart SDK Tests" /></a>
18+
<a href="https://github.com/jamals86/KalamDB/actions/workflows/sdks.yml"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/jamals86/KalamDB/main/.github/badges/sdk-typescript-tests.json" alt="TypeScript SDK Tests" /></a>
19+
<a href="https://github.com/jamals86/KalamDB/actions/workflows/sdks.yml"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/jamals86/KalamDB/main/.github/badges/sdk-dart-tests.json" alt="Dart SDK Tests" /></a>
2020
<a href="https://www.npmjs.com/package/kalam-link"><img src="https://img.shields.io/npm/v/kalam-link?label=typescript%20sdk" alt="TypeScript SDK" /></a>
2121
<a href="https://pub.dev/packages/kalam_link"><img src="https://img.shields.io/pub/v/kalam_link?label=dart%20sdk" alt="Dart SDK" /></a>
2222
</p>

link/kalam-link-dart/src/frb_generated.rs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is automatically generated, so please do not edit it.
2-
// @generated by `flutter_rust_bridge`@ 2.11.1.
2+
// @generated by `flutter_rust_bridge`@ 2.12.0.
33

44
#![allow(
55
non_camel_case_types,
@@ -20,6 +20,7 @@
2020
clippy::deref_addrof,
2121
clippy::explicit_auto_deref,
2222
clippy::borrow_deref_ref,
23+
clippy::uninlined_format_args,
2324
clippy::needless_borrow
2425
)]
2526

@@ -37,7 +38,7 @@ flutter_rust_bridge::frb_generated_boilerplate!(
3738
default_rust_opaque = RustOpaqueMoi,
3839
default_rust_auto_opaque = RustAutoOpaqueMoi,
3940
);
40-
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.11.1";
41+
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.12.0";
4142
pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 57368503;
4243

4344
// Section: executor
@@ -1980,7 +1981,7 @@ impl SseDecode for Vec<String> {
19801981
// Codec=Sse (Serialization based), see doc to use other codecs
19811982
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
19821983
let mut len_ = <i32>::sse_decode(deserializer);
1983-
let mut ans_ = vec![];
1984+
let mut ans_ = Vec::with_capacity(len_ as usize);
19841985
for idx_ in 0..len_ {
19851986
ans_.push(<String>::sse_decode(deserializer));
19861987
}
@@ -1992,7 +1993,7 @@ impl SseDecode for Vec<crate::models::DartQueryResult> {
19921993
// Codec=Sse (Serialization based), see doc to use other codecs
19931994
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
19941995
let mut len_ = <i32>::sse_decode(deserializer);
1995-
let mut ans_ = vec![];
1996+
let mut ans_ = Vec::with_capacity(len_ as usize);
19961997
for idx_ in 0..len_ {
19971998
ans_.push(<crate::models::DartQueryResult>::sse_decode(deserializer));
19981999
}
@@ -2004,7 +2005,7 @@ impl SseDecode for Vec<crate::models::DartSchemaField> {
20042005
// Codec=Sse (Serialization based), see doc to use other codecs
20052006
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
20062007
let mut len_ = <i32>::sse_decode(deserializer);
2007-
let mut ans_ = vec![];
2008+
let mut ans_ = Vec::with_capacity(len_ as usize);
20082009
for idx_ in 0..len_ {
20092010
ans_.push(<crate::models::DartSchemaField>::sse_decode(deserializer));
20102011
}
@@ -2016,7 +2017,7 @@ impl SseDecode for Vec<crate::models::DartSubscriptionInfo> {
20162017
// Codec=Sse (Serialization based), see doc to use other codecs
20172018
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
20182019
let mut len_ = <i32>::sse_decode(deserializer);
2019-
let mut ans_ = vec![];
2020+
let mut ans_ = Vec::with_capacity(len_ as usize);
20202021
for idx_ in 0..len_ {
20212022
ans_.push(<crate::models::DartSubscriptionInfo>::sse_decode(deserializer));
20222023
}
@@ -2028,7 +2029,7 @@ impl SseDecode for Vec<u8> {
20282029
// Codec=Sse (Serialization based), see doc to use other codecs
20292030
fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {
20302031
let mut len_ = <i32>::sse_decode(deserializer);
2031-
let mut ans_ = vec![];
2032+
let mut ans_ = Vec::with_capacity(len_ as usize);
20322033
for idx_ in 0..len_ {
20332034
ans_.push(<u8>::sse_decode(deserializer));
20342035
}
@@ -3468,7 +3469,7 @@ impl SseEncode for usize {
34683469
#[cfg(not(target_family = "wasm"))]
34693470
mod io {
34703471
// This file is automatically generated, so please do not edit it.
3471-
// @generated by `flutter_rust_bridge`@ 2.11.1.
3472+
// @generated by `flutter_rust_bridge`@ 2.12.0.
34723473

34733474
// Section: imports
34743475

@@ -3533,7 +3534,7 @@ pub use io::*;
35333534
#[cfg(target_family = "wasm")]
35343535
mod web {
35353536
// This file is automatically generated, so please do not edit it.
3536-
// @generated by `flutter_rust_bridge`@ 2.11.1.
3537+
// @generated by `flutter_rust_bridge`@ 2.12.0.
35373538

35383539
// Section: imports
35393540

Binary file not shown.
Binary file not shown.
1.79 KB
Binary file not shown.

link/sdks/dart/lib/src/generated/api.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// This file is automatically generated, so please do not edit it.
2-
// @generated by `flutter_rust_bridge`@ 2.11.1.
2+
// @generated by `flutter_rust_bridge`@ 2.12.0.
33

44
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
55

66
import 'frb_generated.dart';
77
import 'models.dart';
88
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
99

10-
// These functions are ignored because they are not marked as `pub`: `build_event_handlers`, `create_client_inner`
10+
// These functions are ignored because they are not marked as `pub`: `build_dart_connection_options`, `build_event_handlers`, `create_client_inner`
1111

1212
/// Create a new KalamDB client.
1313
///

0 commit comments

Comments
 (0)