slurm-sys

Crates.ioslurm-sys
lib.rsslurm-sys
version0.1.3
sourcesrc
created_at2018-03-28 21:07:16.559852
updated_at2018-05-27 20:07:02.380788
descriptionLow-level FFI bindings to the libslurm and libslurmdb libraries.
homepagehttps://github.com/pkgw/slurm-rs
repositoryhttps://github.com/pkgw/slurm-rs
max_upload_size
id57962
size12,211
Peter Williams (pkgw)

documentation

https://docs.rs/slurm-sys

README

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.

Commit count: 454

cargo fmt