Strategies for finding binary dependencies
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

add pybind11 example

+49
+10
REUSE.toml
··· 1 + version = 1 2 + 3 + [[annotations]] 4 + path = [ 5 + ".gitignore", 6 + "Cargo.lock", 7 + "Cargo.toml", 8 + ] 9 + SPDX-FileCopyrightText = "NONE" 10 + SPDX-License-Identifier = "CC0-1.0"
+1
contrib/pybind11/.gitignore
··· 1 + *.so
+9
contrib/pybind11/REUSE.toml
··· 1 + version = 1 2 + 3 + [[annotations]] 4 + path = [ 5 + ".gitignore", 6 + "*.so", 7 + ] 8 + SPDX-FileCopyrightText = "NONE" 9 + SPDX-License-Identifier = "CC0-1.0"
+10
contrib/pybind11/build.sh
··· 1 + #!/bin/sh -eu 2 + 3 + # © 2026 Vlad-Stefan Harbuz <vlad@vlad.website> 4 + # SPDX-License-Identifier: Apache-2.0 5 + 6 + c++ \ 7 + -O3 -Wall -shared -std=c++11 -fPIC \ 8 + $(python3 -m pybind11 --includes) \ 9 + example.cpp \ 10 + -o example$(python3 -m pybind11 --extension-suffix)
+16
contrib/pybind11/example.cpp
··· 1 + // © 2026 Vlad-Stefan Harbuz <vlad@vlad.website> 2 + // SPDX-License-Identifier: Apache-2.0 3 + 4 + #include <pybind11/pybind11.h> 5 + 6 + namespace py = pybind11; 7 + 8 + int add(int i, int j) { 9 + return i + j; 10 + } 11 + 12 + PYBIND11_MODULE(example, m, py::mod_gil_not_used()) { 13 + m.doc() = "pybind11 example plugin"; // optional module docstring 14 + 15 + m.def("add", &add, "A function that adds two numbers"); 16 + }
+3
src/bin/print_symbols.rs
··· 1 + // © 2026 Vlad-Stefan Harbuz <vlad@vlad.website> 2 + // SPDX-License-Identifier: Apache-2.0 3 + 1 4 use std::ffi::OsString; 2 5 use std::path::Path; 3 6