#slurm #c-preprocessor

sys slurm-sys

Low-level FFI bindings to the libslurm and libslurmdb libraries

4 releases

Uses old Rust 2015

0.1.3 May 27, 2018
0.1.2 May 27, 2018
0.1.1 May 16, 2018
0.1.0 Mar 28, 2018

#15 in #slurm

Download history 16/week @ 2023-10-31 7/week @ 2023-11-07 15/week @ 2023-11-14 15/week @ 2023-11-21 26/week @ 2023-11-28 11/week @ 2023-12-05 7/week @ 2023-12-12 13/week @ 2023-12-19 16/week @ 2023-12-26 5/week @ 2024-01-02 9/week @ 2024-01-09 8/week @ 2024-01-16 8/week @ 2024-01-23 14/week @ 2024-01-30 11/week @ 2024-02-06 33/week @ 2024-02-13

68 downloads per month
Used in 2 crates (via slurm)

MIT license

12KB
117 lines

slurm-sys

This crate provides low-level bindings to the libslurm and libslurmdb libraries associated with the Slurm workload manager.

Building

You must have a working version of rustfmt installed in order to build this crate correctly! To handle the evolving Slurm C API, this crate's build script parses the output of bindgen in a simplistic manner. Without rustfmt, the code is not formatted in a way that the build script can handle.

By default, this crate's build script will use a pkg-config search for slurm to determine the necessary library and include search paths. Not all Slurm installs come with a pkg-config file, however. If that is the case for you, set the environment variables SLURM_LIBDIR and, optionally, SLURM_INCDIR to point to the directories containing the Slurm shared libraries and include files, respectively. In particular, these variables should be set such that the files $SLURM_LIBDIR/libslurm.so and $SLURM_INCDIR/slurm/slurm.h exist.

Licensing

Licensed under the MIT License.

Dependencies

~0–1.8MB
~37K SLoC