|
3 | 3 |
|
4 | 4 | // NOTE: This is an auto-generated file. |
5 | 5 | // All modifications will be overwritten. |
| 6 | +use polywrap_core::{invoke::Invoker, uri::Uri}; |
| 7 | +use polywrap_msgpack::{decode, serialize}; |
| 8 | +use polywrap_plugin::{error::PluginError, BigInt, BigNumber, Map, JSON}; |
6 | 9 | use serde::{Serialize, Deserialize}; |
7 | | -use num_bigint::BigInt; |
8 | | -use bigdecimal::BigDecimal as BigNumber; |
9 | | -use serde_json as JSON; |
10 | | -use polywrap_msgpack::extensions::generic_map::GenericMap as Map; |
11 | 10 | {{#importedModuleTypes}} |
12 | 11 | use std::sync::Arc; |
13 | | -use polywrap_msgpack::{decode, serialize}; |
14 | | -use polywrap_core::{invoke::{Invoker}, uri::Uri}; |
15 | | -use polywrap_plugin::error::PluginError; |
16 | 12 | {{/importedModuleTypes}} |
17 | 13 |
|
18 | 14 | // Env START // |
@@ -129,7 +125,7 @@ impl {{#detectKeyword}}{{#toUpper}}{{type}}{{/toUpper}}{{/detectKeyword}} { |
129 | 125 | .map_err(|e| PluginError::SubinvocationError { |
130 | 126 | uri: uri.to_string(), |
131 | 127 | method: "{{name}}".to_string(), |
132 | | - args: serde_json::to_string(&args).unwrap(), |
| 128 | + args: JSON::to_string(&args).unwrap(), |
133 | 129 | exception: e.to_string(), |
134 | 130 | })?; |
135 | 131 |
|
@@ -168,7 +164,7 @@ impl<'a> {{#detectKeyword}}{{#toUpper}}{{type}}{{/toUpper}}{{/detectKeyword}}<'a |
168 | 164 | .map_err(|e| PluginError::SubinvocationError { |
169 | 165 | uri: uri.to_string(), |
170 | 166 | method: "{{name}}".to_string(), |
171 | | - args: serde_json::to_string(&args).unwrap(), |
| 167 | + args: JSON::to_string(&args).unwrap(), |
172 | 168 | exception: e.to_string(), |
173 | 169 | })?; |
174 | 170 |
|
|
0 commit comments