Open upsuper opened 5 years ago
There are two major changes:
null
are replaced with N
search_type
are changed from json object to a array, and Option<Type>
isn't exists in that array if it's None
https://github.com/blackgear/rustdoc_seeker/commit/0ce7d637ce7021237522ab92d08f373eefd33780 changes:
A simple json parser is added as json.rs
, determ if current_char is escaped or in string, and convert N to null.
Due to we don't use search_type
in DocItem
, I just deserialize it to a serde_json::Value insead of a more specific type.
Embed a Javascript interpreter like mozjs
seems really large.. Duktape
binding is outdated... ðŸ˜
@blackgear It seems the format changed again, and the current version no longer works...
Specifically, all
null
s are now replaced withN
which is defined asnull
at the beginning of the file.(I'm wondering whether we should really embed a JavaScript interpreter...)