Skip to content

Commit f80dbf0

Browse files
committed
chore(cryptoki-sys): move header to vendor dir
1 parent 462c07b commit f80dbf0

File tree

3 files changed

+344
-328
lines changed

3 files changed

+344
-328
lines changed

cryptoki-sys/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ mod generate {
8787
}
8888

8989
builder = builder
90-
.header("pkcs11.h")
90+
.header("vendor/pkcs11.h")
9191
.dynamic_library_name("Pkcs11")
9292
// The PKCS11 library works in a slightly different way to most shared libraries. We have
9393
// to call `C_GetFunctionList`, which returns a list of pointers to the _actual_ library
@@ -96,7 +96,7 @@ mod generate {
9696
// This is needed because no types will be generated if `allowlist_function` is used.
9797
// Unsure if this is a bug.
9898
.allowlist_type("*")
99-
.allowlist_file("pkcs11.h")
99+
.allowlist_file("vendor/pkcs11.h")
100100
// See this issue: https://github.com/parallaxsecond/rust-cryptoki/issues/12
101101
.blocklist_type("max_align_t")
102102
// Derive the `Debug` trait for the generated structs where possible.

cryptoki-sys/vendor/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Vendor
2+
3+
This is downloaded from https://github.com/latchset/pkcs11-headers/blob/b131b9e4599db6e0287a3d74f6768e08a0c82d23/public-domain/3.0/pkcs11.h:
4+
5+
```shell
6+
wget https://raw.githubusercontent.com/latchset/pkcs11-headers/b131b9e4599db6e0287a3d74f6768e08a0c82d23/public-domain/3.0/pkcs11.h
7+
```

0 commit comments

Comments
 (0)