We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The standard FFI included in the standard distribution: @ocaml//ffi
@ocaml//ffi
Some packages (e.g. ctypes) export both OCaml files and a C api (headers). The (tentative) naming convention is:
ctypes
@pkg//:pkg
@pkg//:libpkg
For multi-segment pkg names:
@seg1//seg2/seg3
@seg1//seg2/seg3:libseg1_seg2_seg3
For example: @ctypes//:ctypes and @ctypes//:libctypes. OCaml rules can depend on the former; cc_* rules on the latter.
@ctypes//:ctypes
@ctypes//:libctypes
cc_*
ctypes.stubs
@ctypes//stubs
@ctypes//stubs:libctypes_stubs
This may change. libctypes_stubs is a little clunky. Other options:
libctypes_stubs
@ctypes//stubs:hdrs
@ctypes//stubs:c
@ctypes//stubs:c-api
@ctypes/stubs:csdk
Or even:
@ctypes//lib
@ctypes//lib:stubs
The text was updated successfully, but these errors were encountered:
outstanding!
Sorry, something went wrong.
FYI I went ahead and implemented support for pseudo-packages. So for example we have both
@threads//:threads
@ocaml//threads
Both targets are just aliases to @ocaml.threads//:threads.
@ocaml.threads//:threads
No branches or pull requests
The standard FFI included in the standard distribution:
@ocaml//ffi
Some packages (e.g.
ctypes
) export both OCaml files and a C api (headers). The (tentative) naming convention is:@pkg//:pkg
for the Ocaml target@pkg//:libpkg
for the C api.For multi-segment pkg names:
@seg1//seg2/seg3
@seg1//seg2/seg3:libseg1_seg2_seg3
For example:
@ctypes//:ctypes
and@ctypes//:libctypes
. OCaml rules can depend on the former;cc_*
rules on the latter.ctypes.stubs
=>@ctypes//stubs
and@ctypes//stubs:libctypes_stubs
This may change.
libctypes_stubs
is a little clunky. Other options:@ctypes//stubs:hdrs
@ctypes//stubs:c
@ctypes//stubs:c-api
@ctypes/stubs:csdk
Or even:
@ctypes//lib
@ctypes//lib:stubs
The text was updated successfully, but these errors were encountered: