@arrirpc/codegen-rust 0.70.1 → 0.71.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +3 -4
package/dist/index.cjs
CHANGED
@@ -1551,8 +1551,8 @@ function rustHttpRpcFromSchema(schema, context) {
|
|
1551
1551
|
if (schema.isDeprecated) {
|
1552
1552
|
leading += "#[deprecated]\n";
|
1553
1553
|
}
|
1554
|
-
const params = schema.params ? validRustName(schema.params) :
|
1555
|
-
const response = schema.response ? validRustName(schema.response) :
|
1554
|
+
const params = schema.params ? validRustName(schema.params) : undefined;
|
1555
|
+
const response = schema.response ? validRustName(schema.response) : undefined;
|
1556
1556
|
if (schema.isEventStream) {
|
1557
1557
|
return `${leading}pub async fn ${functionName}<OnEvent>(
|
1558
1558
|
&self,
|
package/dist/index.d.cts
CHANGED
@@ -29,7 +29,7 @@ interface RustClientGeneratorOptions {
|
|
29
29
|
typePrefix?: string;
|
30
30
|
}
|
31
31
|
declare const rustClientGenerator: _arrirpc_codegen_utils.GeneratorPlugin<RustClientGeneratorOptions>;
|
32
|
-
declare function createRustClient(def: AppDefinition, context: Omit<GeneratorContext,
|
32
|
+
declare function createRustClient(def: AppDefinition, context: Omit<GeneratorContext, 'clientVersion'>): string;
|
33
33
|
declare function rustTypeFromSchema(schema: Schema, context: GeneratorContext): RustProperty;
|
34
34
|
|
35
35
|
export { type RustClientGeneratorOptions, createRustClient, rustClientGenerator, rustTypeFromSchema };
|
package/dist/index.d.mts
CHANGED
@@ -29,7 +29,7 @@ interface RustClientGeneratorOptions {
|
|
29
29
|
typePrefix?: string;
|
30
30
|
}
|
31
31
|
declare const rustClientGenerator: _arrirpc_codegen_utils.GeneratorPlugin<RustClientGeneratorOptions>;
|
32
|
-
declare function createRustClient(def: AppDefinition, context: Omit<GeneratorContext,
|
32
|
+
declare function createRustClient(def: AppDefinition, context: Omit<GeneratorContext, 'clientVersion'>): string;
|
33
33
|
declare function rustTypeFromSchema(schema: Schema, context: GeneratorContext): RustProperty;
|
34
34
|
|
35
35
|
export { type RustClientGeneratorOptions, createRustClient, rustClientGenerator, rustTypeFromSchema };
|
package/dist/index.d.ts
CHANGED
@@ -29,7 +29,7 @@ interface RustClientGeneratorOptions {
|
|
29
29
|
typePrefix?: string;
|
30
30
|
}
|
31
31
|
declare const rustClientGenerator: _arrirpc_codegen_utils.GeneratorPlugin<RustClientGeneratorOptions>;
|
32
|
-
declare function createRustClient(def: AppDefinition, context: Omit<GeneratorContext,
|
32
|
+
declare function createRustClient(def: AppDefinition, context: Omit<GeneratorContext, 'clientVersion'>): string;
|
33
33
|
declare function rustTypeFromSchema(schema: Schema, context: GeneratorContext): RustProperty;
|
34
34
|
|
35
35
|
export { type RustClientGeneratorOptions, createRustClient, rustClientGenerator, rustTypeFromSchema };
|
package/dist/index.mjs
CHANGED
@@ -1543,8 +1543,8 @@ function rustHttpRpcFromSchema(schema, context) {
|
|
1543
1543
|
if (schema.isDeprecated) {
|
1544
1544
|
leading += "#[deprecated]\n";
|
1545
1545
|
}
|
1546
|
-
const params = schema.params ? validRustName(schema.params) :
|
1547
|
-
const response = schema.response ? validRustName(schema.response) :
|
1546
|
+
const params = schema.params ? validRustName(schema.params) : undefined;
|
1547
|
+
const response = schema.response ? validRustName(schema.response) : undefined;
|
1548
1548
|
if (schema.isEventStream) {
|
1549
1549
|
return `${leading}pub async fn ${functionName}<OnEvent>(
|
1550
1550
|
&self,
|
package/package.json
CHANGED