Bug #7667
closedrust: move extern C definitions to suricata_sys and bindgen
Description
For example rust/src/detect/mod.rs has quite some functions /// cbindgen:ignore extern "C" function definitions like DetectBufferSetActiveList
These should come from suricata_sys with the help of bindgen
Updated by Philippe Antoine 2 months ago
- Status changed from New to In Progress
Updated by Philippe Antoine about 2 months ago
https://github.com/OISF/suricata/pull/13100 first merge
Updated by Philippe Antoine about 1 month ago
- Target version changed from 9.0.0-beta1 to 8.0.0-rc1
Updated by Philippe Antoine about 1 month ago
https://github.com/OISF/suricata/pull/13166 second merge
Updated by Philippe Antoine about 1 month ago
https://github.com/OISF/suricata/pull/13218 third merge
Updated by Victor Julien about 1 month ago
- Blocks Story #7148: extensibility: plugins added
Updated by Philippe Antoine about 1 month ago
- Blocks Bug #7666: rust: zero-dependency crate suricata-core added
Updated by Philippe Antoine about 1 month ago
Updated by Juliana Fajardini Reichow 17 days ago · Edited
More merged with https://github.com/OISF/suricata/pull/13295
Updated by Philippe Antoine 13 days ago
Updated by Philippe Antoine 12 days ago · Edited
Looking at some remaining cbindgen:ignore
- applayer.rs : will need a suricata_core crate or another hack to avoid redefining the AppLayerTxData and other types defined in rust
- core.rs : I think it deserves a ticket to get rid of SuricataContext
with some :#[cfg(test)]
. magic
- datasets.rs : I think it deserves a ticket to switch to rust hash maps instead of C ones
- filecontainer.rs : util-file.h mixes some rust and C, so kind of same difficulty as applayer.rs
- frames.rs : same C-rust mix
Updated by Philippe Antoine 12 days ago
- Target version changed from 8.0.0-rc1 to 9.0.0-beta1
Updated by Philippe Antoine 10 days ago
Updated by Philippe Antoine 10 days ago
applayer.rs and frames.rs share the same problem : we want to bindgen a C function like `AppLayerFrameNewByRelativeOffset` which uses as argument of type `StreamSlice` which is defined in rust
Updated by Victor Julien 8 days ago
- Status changed from In Progress to Closed
- Target version changed from 9.0.0-beta1 to 8.0.0-rc1
Updated by Philippe Antoine 6 days ago
- Copied to Bug #7762: rust: finish moving extern C definitions to suricata_sys and bindgen added