-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rust: Initialisation of OFG for Rust projects (#781)
This PR initialise OFG for rust projects. This PR superceeds #762. This PR also fixed the experimental from_scratch approach to work for Rust projects. --------- Signed-off-by: Arthur Chan <[email protected]>
- Loading branch information
1 parent
de2ab8c
commit 248a804
Showing
22 changed files
with
539 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
"functions": | ||
- "name": "derive_template" | ||
"params": | ||
- "name": "input" | ||
"type": "TokenStream" | ||
"return_type": "TokenStream" | ||
"signature": "pub fn derive_template(input: TokenStream) -> TokenStream" | ||
- "name": "build_template" | ||
"params": | ||
- "name": "ast" | ||
"type": "&syn::DeriveInput" | ||
"return_type": "Result" | ||
"signature": "pub(crate) fn build_template(ast: &syn::DeriveInput) -> Result<String, CompileError>" | ||
- "name": "build_skeleton" | ||
"params": | ||
- "name": "ast" | ||
"type": "&syn::DeriveInput" | ||
"return_type": "Result" | ||
"signature": "fn build_skeleton(ast: &syn::DeriveInput) -> Result<String, CompileError>" | ||
- "name": "Generator::build" | ||
"params": | ||
- "name": "ctx" | ||
"type": "&Context<'a>" | ||
"return_type": "Result" | ||
"signature": "pub(crate) fn build(mut self, ctx: &Context<'a>) -> Result<String, CompileError>" | ||
- "name": "Generator::impl_template" | ||
"params": | ||
- "name": "ctx" | ||
"type": "&Context<'a>" | ||
- "name": "buf" | ||
"type": "&mut Buffer" | ||
"return_type": "Result" | ||
"signature": "fn impl_template(&mut self, ctx: &Context<'a>, buf: &mut Buffer) -> Result<(), CompileError>" | ||
"language": "rust" | ||
"project": "askama" | ||
"target_name": "fuzz_filters" | ||
"target_path": "/src/askama/fuzz/fuzz_targets/fuzz_filters.rs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"functions": | ||
- "name": "DeriveStruct::generate_decode" | ||
"params": | ||
- "name": "generator" | ||
"type": "&mut Generator" | ||
"return_type": "Result" | ||
"signature": "pub fn generate_decode(self, generator: &mut Generator) -> Result<()>" | ||
- "name": "AllTypes::encode" | ||
"params": | ||
- "name": "encoder" | ||
"type": "& mut __E" | ||
"return_type": "core :: result :: Result" | ||
"signature": "fn encode < __E : :: bincode :: enc :: Encoder >(& self, encoder : & mut __E) ->core :: result :: Result < (), :: bincode:: error :: EncodeError >" | ||
- "name": "DeriveEnum::generate_borrow_decode" | ||
"params": | ||
- "name": "generator" | ||
"type": "&mut Generator" | ||
"return_type": "Result" | ||
"signature": "pub fn generate_borrow_decode(self, generator: &mut Generator) -> Result<()>" | ||
- "name": "AllTypes::borrow_decode" | ||
"params": | ||
- "name": "decoder" | ||
"type": "& mut __D" | ||
"return_type": "core :: result :: Result" | ||
"signature": "fn borrow_decode < __D : :: bincode :: de :: BorrowDecoder < '__de > >(decoder : & mut __D) ->core :: result :: Result < Self, :: bincode ::error :: DecodeError >" | ||
"language": "rust" | ||
"project": "bincode" | ||
"target_name": "roundtrip" | ||
"target_path": "/src/bincode/fuzz/fuzz_targets/roundtrip.rs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
"functions": | ||
- "name": "parse_reason" | ||
"params": | ||
- "name": "bytes" | ||
"type": "&mut Bytes<'a>" | ||
"return_type": "Result" | ||
"signature": "fn parse_reason<'a>(bytes: &mut Bytes<'a>) -> Result<&'a str>" | ||
- "name": "enable_simd" | ||
"params": | ||
- "name": "version" | ||
"type": "Version" | ||
"return_type": "void" | ||
"signature": "fn enable_simd(version: Version)" | ||
- "name": "match_uri_vectored" | ||
"params": | ||
- "name": "bytes" | ||
"type": "&mut Bytes" | ||
"return_type": "void" | ||
"signature": "fn match_uri_vectored(bytes: &mut Bytes)" | ||
"language": "rust" | ||
"project": "httparse" | ||
"target_name": "parse_chunk_size" | ||
"target_path": "Did-not-find-sourcefile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
"functions": | ||
- "name": "udivmod_1e19" | ||
"params": | ||
- "name": "n" | ||
"type": "u128" | ||
"return_type": "(u128, u64)" | ||
"signature": "pub fn udivmod_1e19(n: u128) -> (u128, u64)" | ||
- "name": "u128_mulhi" | ||
"params": | ||
- "name": "x" | ||
"type": "u128" | ||
- "name": "y" | ||
"type": "u128" | ||
"return_type": "u128" | ||
"signature": "fn u128_mulhi(x: u128, y: u128) -> u128" | ||
- "name": "Buffer::format" | ||
"params": | ||
- "name": "i" | ||
"type": "I" | ||
"return_type": "&str" | ||
"signature": "pub fn format<I: Integer>(&mut self, i: I) -> &str" | ||
"language": "rust" | ||
"project": "itoa" | ||
"target_name": "fuzz_itoa" | ||
"target_path": "/src/itoa/fuzz/fuzz_targets/fuzz_itoa.rs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
"functions": | ||
- "name": "s2f" | ||
"params": | ||
- "name": "buffer" | ||
"type": "&[u8]" | ||
"return_type": "Result" | ||
"signature": "pub fn s2f(buffer: &[u8]) -> Result<f32, Error>" | ||
- "name": "s2d" | ||
"params": | ||
- "name": "buffer" | ||
"type": "&[u8]" | ||
"return_type": "Result" | ||
"signature": "pub fn s2d(buffer: &[u8]) -> Result<f64, Error>" | ||
- "name": "Buffer::format" | ||
"params": | ||
- "name": "f" | ||
"type": "F" | ||
"return_type": "&str" | ||
"signature": "pub fn format<F: Float>(&mut self, f: F) -> &str" | ||
- "name": "compute_pow5" | ||
"params": | ||
- "name": "i" | ||
"type": "u32" | ||
"return_type": "(u64, u64)" | ||
"signature": "pub unsafe fn compute_pow5(i: u32) -> (u64, u64)" | ||
- "name": "compute_inv_pow5" | ||
"params": | ||
- "name": "i" | ||
"type": "u32" | ||
"return_type": "(u64, u64)" | ||
"signature": "pub unsafe fn compute_inv_pow5(i: u32) -> (u64, u64)" | ||
"language": "rust" | ||
"project": "ryu" | ||
"target_name": "fuzz_ryu" | ||
"target_path": "/src/ryu/fuzz/fuzz_targets/fuzz_ryu.rs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
"functions": | ||
- "name": "expand_state_table" | ||
"params": | ||
- "name": "cx" | ||
"type": "&'cx mut ExtCtxt" | ||
- "name": "sp" | ||
"type": "Span" | ||
- "name": "args" | ||
"type": "&[TokenTree]" | ||
"return_type": "Box" | ||
"signature": "fn expand_state_table<'cx>(cx: &'cx mut ExtCtxt,sp: Span,args: &[TokenTree])-> Box<MacResult + 'cx>" | ||
- "name": "parse_raw_definitions" | ||
"params": | ||
- "name": "definitions" | ||
"type": "Vec<TableDefinitionExprs>" | ||
- "name": "cx" | ||
"type": "&mut ExtCtxt" | ||
"return_type": "Result" | ||
"signature": "fn parse_raw_definitions(definitions: Vec<TableDefinitionExprs>,cx: &mut ExtCtxt) -> Result<Vec<TableDefinition>, ()>" | ||
- "name": "input_mapping_from_arm" | ||
"params": | ||
- "name": "arm" | ||
"type": "Arm" | ||
- "name": "cx" | ||
"type": "&mut ExtCtxt" | ||
"return_type": "Result" | ||
"signature": "fn input_mapping_from_arm(arm: Arm, cx: &mut ExtCtxt) -> Result<InputMapping, ()>" | ||
- "name": "Transition::from_expr" | ||
"params": | ||
- "name": "expr" | ||
"type": "&Expr" | ||
- "name": "cx" | ||
"type": "&mut ExtCtxt" | ||
"return_type": "Result" | ||
"signature": "fn from_expr(expr: &Expr, cx: &mut ExtCtxt) -> Result<Transition, ()>" | ||
- "name": "build_state_tables" | ||
"params": | ||
- "name": "defs" | ||
"type": "T" | ||
"return_type": "[[u8; 256]; 16]" | ||
"signature": "fn build_state_tables<T>(defs: T) -> [[u8; 256]; 16]where T: AsRef<[TableDefinition]>" | ||
"language": "rust" | ||
"project": "utf8parse" | ||
"target_name": "parse" | ||
"target_path": "/src/vte/utf8parse/fuzz/fuzz_targets/parse.rs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.