Skip to content

Commit

Permalink
Remove messagepack
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejressel committed Jul 9, 2024
1 parent 9cc31dc commit 3afc2d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion pulumi_wasm_core/src/nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use crate::pulumi::service::{RegisterResourceRequest, RegisterResourceResponse};
use log::error;
use serde_json::Value;
use std::collections::{HashMap, HashSet};
use std::iter::Map;

#[derive(Clone, Debug, PartialEq)]
pub(crate) enum Callback {
Expand Down
5 changes: 2 additions & 3 deletions pulumi_wasm_core/src/pulumi/service_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use std::collections::{BTreeMap, HashMap, HashSet};
use log::{error, warn};
use prost::Message;
use prost_types::value::Kind;
use prost_types::value::Kind::StructValue;
use prost_types::{ListValue, Struct};
use serde_json::{Number, Value};

Expand Down Expand Up @@ -183,7 +182,7 @@ impl PulumiServiceImpl {
kind: Some(prost_types::value::Kind::NullValue(0)),
},
Value::Bool(b) => prost_types::Value {
kind: Some(prost_types::value::Kind::BoolValue(b.clone())),
kind: Some(prost_types::value::Kind::BoolValue(*b)),
},
Value::Number(n) => prost_types::Value {
kind: Some(prost_types::value::Kind::NumberValue(n.as_f64().unwrap())),
Expand Down Expand Up @@ -232,7 +231,7 @@ impl PulumiServiceImpl {
Some(Kind::StructValue(s)) => Value::Object(
s.fields
.iter()
.map(|(k, v)| (k.clone(), Self::protobuf_to_json(&v)))
.map(|(k, v)| (k.clone(), Self::protobuf_to_json(v)))
.collect(),
),
Some(Kind::ListValue(l)) => {
Expand Down
4 changes: 1 addition & 3 deletions pulumi_wasm_generator_lib/src/output/provider/source_code.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use crate::model::{ElementId, GlobalType, GlobalTypeProperty, Ref, Type};
use crate::model::{ElementId, Type};
use crate::output::replace_multiple_dashes;
use anyhow::Context;
use handlebars::Handlebars;
use std::collections::BTreeMap;

use serde::Serialize;
use serde_json::json;
Expand Down

0 comments on commit 3afc2d0

Please sign in to comment.