blob: 9736db9fe3e25657e2bc50c748f159b559d62158 [file] [log] [blame]
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
# https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.
[package]
name = "autocxx-engine"
version = "0.26.0"
authors = ["Adrian Taylor <adetaylor@chromium.org>"]
license = "MIT OR Apache-2.0"
description = "Safe autogenerated interop between Rust and C++"
repository = "https://github.com/google/autocxx"
edition = "2021"
keywords = ["ffi"]
categories = ["development-tools::ffi", "api-bindings"]
[features]
default = ["reproduction_case", "runtime"]
build = ["cc"]
nightly = [] # for doc generation purposes only; used by docs.rs
reproduction_case = ["serde_json", "autocxx-parser/reproduction_case"]
runtime = ["autocxx-bindgen/runtime"]
static = ["autocxx-bindgen/static"]
[dependencies]
log = "0.4"
proc-macro2 = "1.0.11"
quote = "1.0"
indoc = "1.0"
autocxx-bindgen = { version = "=0.65.1", default-features = false, features = ["logging", "which-rustfmt"] }
#autocxx-bindgen = { git = "https://github.com/maurer/rust-bindgen", branch = "update-0.65.1", default-features = false, features = ["logging", "which-rustfmt"] }
itertools = "0.10.3"
cc = { version = "1.0", optional = true }
# Note: Keep the patch-level version of cxx-gen and cxx in sync.
# There can be interdependencies between the code generated by cxx-gen and
# what cxx expects to be there.
cxx-gen = "0.7.78"
autocxx-parser = { version = "=0.26.0", path = "../parser" }
version_check = "0.9"
aquamarine = "0.1" # docs
tempfile = "3.4"
once_cell = "1.7"
serde_json = { version = "1.0", optional = true }
miette = "5"
thiserror = "1"
regex = "1.5"
indexmap = "1.8"
prettyplease = { version = "0.2.6", features = ["verbatim"] }
rustversion = "1.0"
[dependencies.syn]
version = "2.0.1"
features = ["full", "printing", "visit-mut"]
#features = [ "full", "printing", "visit-mut", "extra-traits" ]
[package.metadata.docs.rs]
features = ["build", "nightly"]
[dev-dependencies]
cc = "1.0"