Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
fcd3242
add serialize to all the exported structs
Mossaka Aug 23, 2023
b5b79ba
rustfmt
Mossaka Aug 23, 2023
8edc9f8
simplify the JSON output
Mossaka Aug 30, 2023
dbdde18
wit-parser: add implementation of id_arena::ArenaBehavior for serde s…
ydnar Aug 31, 2023
7a27087
wit-parser: rename world arg to world_id
ydnar Aug 31, 2023
a63119a
wit-parser: use InterfaceId and WorldId types
ydnar Aug 31, 2023
4e3602d
wit-parser: skip serialization of package name index
ydnar Aug 31, 2023
3bd24fb
wit-parser: additional Serialize implementations
ydnar Aug 31, 2023
48e4ad5
wit-parser: use derived Serialize for more types
ydnar Aug 31, 2023
218d8f1
wit-parser: change Params type from an alias to a single-value tuple …
ydnar Aug 31, 2023
fe3a420
wit-parser: cleanup on aisle params
ydnar Aug 31, 2023
6bf12cb
wit-parser: lowercase serialization for enums
ydnar Aug 31, 2023
ea455fb
wit-parser: implement Serialize in a function
ydnar Sep 1, 2023
b5c68b4
wit-parser: remove dependency on fork of id-arena crate
ydnar Sep 1, 2023
38901e4
wit-parser: remove custom Serialize impl for Function
ydnar Sep 2, 2023
706d489
wit-parser: remove custom Serialize impl for Docs
ydnar Sep 2, 2023
9d95299
wit-parser: custom Serialize implementation for Handle and TypeOwner
ydnar Sep 2, 2023
79188fb
wit-parser: custom Serialize impl for WorldItem
ydnar Sep 2, 2023
2fdeb0c
wit-parser: Serialize enums with less code
ydnar Sep 2, 2023
abd730f
wit-parser: implement lowercase derived impl Serialize for FunctionKind
ydnar Sep 3, 2023
1771e10
wit-parser: serialize WIT types in JSON in their lowercase form
ydnar Sep 3, 2023
ccb7e5c
wit-component, wit-parser: remove custom Params type
ydnar Sep 3, 2023
52015c7
wit-parser: remove commented-out serialize fn
ydnar Sep 3, 2023
61e48b1
wit-parser: remove custom Serialize impl for Results
ydnar Sep 3, 2023
db4b091
wit-parser: remove custom ArenaBehavior in favor of serialize_\* func…
ydnar Sep 3, 2023
3eff7f0
wit-component: revert unnecessary line change
ydnar Sep 3, 2023
d49b5fb
wit-parser: revert unrelated change
ydnar Sep 3, 2023
5d9f368
wit-parser: remove Serialize impl from Int
ydnar Sep 3, 2023
14230bf
wit-parser: remove From<Int> for String
ydnar Sep 3, 2023
dbf7bfd
wit-parser: remove Serialize impl from FlagsRepr
ydnar Sep 3, 2023
9467869
fixed the tests and run rustfmt
Mossaka Sep 3, 2023
34baa97
add serde_json to component feature
Mossaka Sep 3, 2023
db47700
modified the tests to generate json for each valid WIT package.
Mossaka Sep 14, 2023
9bd2309
delete the unit tests in resolve.rs
Mossaka Sep 14, 2023
60ccab1
wit-parser: remove Serialize from IncludeName
ydnar Sep 14, 2023
68b52f6
wit-parser: skip serializing Docs if empty
ydnar Sep 14, 2023
fdfd7cc
wit-parser: commit blessed JSON output with empty Docs skipped
ydnar Sep 14, 2023
be17ced
wit-parser: remove SerializableVersion
ydnar Sep 14, 2023
b896b0b
wit-parser: revert formatting changes
ydnar Sep 14, 2023
c00906b
wit-parser: rustfmt
ydnar Sep 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
wit-parser: remove commented-out serialize fn
  • Loading branch information
ydnar authored and Mossaka committed Sep 14, 2023
commit 52015c7504ec5881f673c3f20dabc4b9b4285342
13 changes: 0 additions & 13 deletions crates/wit-parser/src/serde_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,3 @@ struct Param {
#[serde(rename = "type")]
pub typ: Type
}

// pub fn serialize_param<S>(param: &(String, Type), serializer: S) -> Result<S::Ok, S::Error>
// where
// S: Serializer,
// {
// let len = if param.0.is_empty() { 1 } else { 2 };
// let mut s = serializer.serialize_struct("Param", len)?;
// if !param.0.is_empty() {
// s.serialize_field("name", &param.0)
// }
// s.serialize_field("type", &param.1);
// s.end()
// }