Crates.io | carla-sys |
lib.rs | carla-sys |
version | 0.11.1 |
source | src |
created_at | 2022-12-05 09:35:02.644966 |
updated_at | 2024-03-29 03:12:27.443724 |
description | FFI bindings for Carla simulator |
homepage | https://github.com/jerry73204/carla-rust |
repository | https://github.com/jerry73204/carla-rust |
max_upload_size | |
id | 730132 |
size | 856,607 |
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.
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
It is distributed under MIT license. Please see LICENSE.txt file for full license text.