fix bindings
This commit is contained in:
parent
da7f82a6dd
commit
4259085e0f
16
dummy.h
16
dummy.h
|
@ -1,4 +1,20 @@
|
|||
#include "config.h"
|
||||
#include "util/log.h"
|
||||
#include "util/module.h"
|
||||
#include "util/netevent.h"
|
||||
#include "util/regional.h"
|
||||
#include "util/config_file.h"
|
||||
#include "util/data/msgreply.h"
|
||||
#include "util/data/packed_rrset.h"
|
||||
#include "util/data/dname.h"
|
||||
#include "util/storage/lruhash.h"
|
||||
#include "services/cache/dns.h"
|
||||
#include "services/localzone.h"
|
||||
#include "dynlibmod/dynlibmod.h"
|
||||
#include "services/mesh.h"
|
||||
#include "iterator/iter_delegpt.h"
|
||||
#include "iterator/iter_hints.h"
|
||||
#include "iterator/iter_utils.h"
|
||||
#include "sldns/wire2str.h"
|
||||
#include "sldns/str2wire.h"
|
||||
#include "sldns/pkthdr.h"
|
||||
|
|
|
@ -21,4 +21,4 @@ radix_trie = "0.2.1"
|
|||
serde = { version = "1.0.205", features = ["derive"] }
|
||||
serde_json = "1.0.122"
|
||||
smallvec = "1.13.2"
|
||||
unbound-mod = { path = "../unbound-mod", default-features = false }
|
||||
unbound-mod = { path = "../unbound-mod" }
|
||||
|
|
|
@ -21,10 +21,10 @@
|
|||
cp ${./dummy.h} ./dummy.h
|
||||
opts=()
|
||||
for file in **/*.h; do
|
||||
opts+=(--allowlist-file "$PWD/$file")
|
||||
opts+=(--allowlist-file ".*/$file")
|
||||
done
|
||||
|
||||
bindgen --no-layout-tests "''${opts[@]}" dummy.h -- -I "$PWD" > "$out"
|
||||
bindgen --no-layout-tests "''${opts[@]}" dummy.h -- -I "$PWD" $(grep ^CPPFLAGS= config.log | sed "s/.*='//;s/'//" | head -c-1 && grep ^CFLAGS= config.log | sed "s/.*-pthread//;s/'//") > "$out"
|
||||
'';
|
||||
});
|
||||
unbound-mod = let
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue