1 unstable release
new 0.1.0 | Nov 5, 2024 |
---|
#11 in #descriptor
104 downloads per month
10KB
324 lines
jvm-descriptors
JVM descriptor parsers
Examples
"Ljava/lang/String;".parse::<Type>();
Method {
name: "hello".to_string(),
parameters: vec![],
return_type: None,
}.to_string();
Notes
Note that this crate is somewhat lenient—the goal is to do basic parsing and no other validation. If you want to make sure that e.g. a given package path has at least two parts, validate it on your own. Additionally, absolutely no validation is done when serialising to a string.
Dependencies
~2.5MB
~36K SLoC