15 releases (breaking)

0.11.1 Mar 29, 2024
0.10.1 Oct 8, 2023
0.8.0 Jan 3, 2023
0.6.0 Dec 23, 2022

#280 in Simulation

Download history 4/week @ 2024-07-19 8/week @ 2024-07-26 4/week @ 2024-08-02 1/week @ 2024-08-30 2/week @ 2024-09-06 36/week @ 2024-09-20 12/week @ 2024-09-27 8/week @ 2024-10-04 26/week @ 2024-10-11 9/week @ 2024-10-18 11/week @ 2024-10-25 14/week @ 2024-11-01

61 downloads per month
Used in 2 crates (via carla)

MIT license

720KB
612 lines

carla-sys

This crate provides Rust FFI bindings for CARLA simulator. It links to pre-built libcarla_client libraries and generates FFI bindings using autocxx. Additional C++ code in csrc directory replaces some classes and functions that cannot be correctly handled by autocxx.

It is part of carla crate and normally you don't have to include this package in your project.

Use Custom CARLA Source Code

In the case that you want to use a custom CARLA repository. Set the CARLA_DIR environment variable to point to your CARLA repo and build carla-sys with additional features.

// Prepare and compile CARLA repo.
git clone https://github.com/carla-simulator/carla.git $HOME/my-carla
// Set CARLA_DIR and build your Rust project.
export CARLA_DIR=$HOME/my-carla

git clone https://github.com/jerry73204/carla-rust.git
cd carla-rust/carla-sys
cargo build \
    --features build-lib \
    --features save-lib \
    --features save-bindgen

License

It is distributed under MIT license. Please see LICENSE.txt file for full license text.

Dependencies

~2.6–8.5MB
~160K SLoC