Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bazel/llvm.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _llvm_loader_repository(repository_ctx):
executable = False,
)

LLVM_COMMIT_SHA = "c6bb1afbc5086c3f483921c575262bd95c346e5b"
LLVM_COMMIT_SHA = "b20d7d0278059735bb8eb538ac51e13b58895c1a"

def llvm_loader_repository_dependencies():
# This *declares* the dependency, but it won't actually be *downloaded* unless it's used.
Expand Down
2 changes: 1 addition & 1 deletion cc_bindings_from_rs/test/consts/consts_cc_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Automatically @generated C++ bindings for the following Rust crate:
// consts_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor,
// std_unique_ptr, std_vector, supported, wrapper
// std_unique_ptr, std_vector, supported, unsafe_view, wrapper

// clang-format off
#ifndef THIRD_PARTY_CRUBIT_CC_BINDINGS_FROM_RS_TEST_CONSTS_CONSTS_GOLDEN
Expand Down
2 changes: 1 addition & 1 deletion cc_bindings_from_rs/test/consts/consts_cc_api_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Automatically @generated C++ bindings for the following Rust crate:
// consts_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, wrapper
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, unsafe_view, wrapper

#![allow(unused_unsafe, deprecated, non_snake_case, unreachable_code)]
#![allow(improper_ctypes_definitions)]
Expand Down
2 changes: 1 addition & 1 deletion cc_bindings_from_rs/test/enums/enums_cc_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Automatically @generated C++ bindings for the following Rust crate:
// enums_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor,
// std_unique_ptr, std_vector, supported, wrapper
// std_unique_ptr, std_vector, supported, unsafe_view, wrapper

// clang-format off
#ifndef THIRD_PARTY_CRUBIT_CC_BINDINGS_FROM_RS_TEST_ENUMS_ENUMS_GOLDEN
Expand Down
2 changes: 1 addition & 1 deletion cc_bindings_from_rs/test/enums/enums_cc_api_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Automatically @generated C++ bindings for the following Rust crate:
// enums_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, wrapper
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, unsafe_view, wrapper

#![allow(unused_unsafe, deprecated, non_snake_case, unreachable_code)]
#![allow(improper_ctypes_definitions)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Automatically @generated C++ bindings for the following Rust crate:
// function_pointers_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor,
// std_unique_ptr, std_vector, supported, wrapper
// std_unique_ptr, std_vector, supported, unsafe_view, wrapper

// clang-format off
#ifndef THIRD_PARTY_CRUBIT_CC_BINDINGS_FROM_RS_TEST_FUNCTION_POINTERS_FUNCTION_POINTERS_GOLDEN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Automatically @generated C++ bindings for the following Rust crate:
// function_pointers_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, wrapper
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, unsafe_view, wrapper

#![allow(unused_unsafe, deprecated, non_snake_case, unreachable_code)]
#![allow(improper_ctypes_definitions)]
Expand Down
2 changes: 1 addition & 1 deletion cc_bindings_from_rs/test/functions/functions_cc_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Automatically @generated C++ bindings for the following Rust crate:
// functions_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor,
// std_unique_ptr, std_vector, supported, wrapper
// std_unique_ptr, std_vector, supported, unsafe_view, wrapper

// clang-format off
#ifndef THIRD_PARTY_CRUBIT_CC_BINDINGS_FROM_RS_TEST_FUNCTIONS_FUNCTIONS_GOLDEN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Automatically @generated C++ bindings for the following Rust crate:
// functions_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, wrapper
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, unsafe_view, wrapper

#![allow(unused_unsafe, deprecated, non_snake_case, unreachable_code)]
#![allow(improper_ctypes_definitions)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Automatically @generated C++ bindings for the following Rust crate:
// composable_bridging_rust_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor,
// std_unique_ptr, std_vector, supported, wrapper
// std_unique_ptr, std_vector, supported, unsafe_view, wrapper

// clang-format off
#ifndef THIRD_PARTY_CRUBIT_CC_BINDINGS_FROM_RS_TEST_GOLDEN_COMPOSABLE_BRIDGING_RUST_GOLDEN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Automatically @generated C++ bindings for the following Rust crate:
// composable_bridging_rust_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, wrapper
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, unsafe_view, wrapper

#![allow(unused_unsafe, deprecated, non_snake_case, unreachable_code)]
#![allow(improper_ctypes_definitions)]
Expand Down
4 changes: 2 additions & 2 deletions cc_bindings_from_rs/test/golden/function_annotations_cc_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Automatically @generated C++ bindings for the following Rust crate:
// function_annotations_rust_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor,
// std_unique_ptr, std_vector, supported, wrapper
// std_unique_ptr, std_vector, supported, unsafe_view, wrapper

// clang-format off
#ifndef THIRD_PARTY_CRUBIT_CC_BINDINGS_FROM_RS_TEST_GOLDEN_FUNCTION_ANNOTATIONS_RUST_GOLDEN
Expand Down Expand Up @@ -37,4 +37,4 @@ inline std::int32_t add_two_integers(std::int32_t x, std::int32_t y) {
#pragma clang diagnostic pop
#endif // THIRD_PARTY_CRUBIT_CC_BINDINGS_FROM_RS_TEST_GOLDEN_FUNCTION_ANNOTATIONS_RUST_GOLDEN

// This file contains Kythe metadata. eyJ0eXBlIjoia3l0aGUwIiwibWV0YSI6W3sidHlwZSI6ImFuY2hvcl9hbmNob3IiLCJzb3VyY2VfYmVnaW4iOjE5MSwic291cmNlX2VuZCI6MjA3LCJ0YXJnZXRfYmVnaW4iOjEwNTYsInRhcmdldF9lbmQiOjEwNzIsImVkZ2UiOiIva3l0aGUvZWRnZS9pbXB1dGVzIiwic291cmNlX3ZuYW1lIjp7ImNvcnB1cyI6ImNvcnB1cyIsInBhdGgiOiJ0aGlyZF9wYXJ0eS9jcnViaXQvY2NfYmluZGluZ3NfZnJvbV9ycy90ZXN0L2dvbGRlbi9mdW5jdGlvbl9hbm5vdGF0aW9ucy5ycyIsImxhbmd1YWdlIjoicnVzdCJ9fV19
// This file contains Kythe metadata. eyJ0eXBlIjoia3l0aGUwIiwibWV0YSI6W3sidHlwZSI6ImFuY2hvcl9hbmNob3IiLCJzb3VyY2VfYmVnaW4iOjE5MSwic291cmNlX2VuZCI6MjA3LCJ0YXJnZXRfYmVnaW4iOjEwNjksInRhcmdldF9lbmQiOjEwODUsImVkZ2UiOiIva3l0aGUvZWRnZS9pbXB1dGVzIiwic291cmNlX3ZuYW1lIjp7ImNvcnB1cyI6ImNvcnB1cyIsInBhdGgiOiJ0aGlyZF9wYXJ0eS9jcnViaXQvY2NfYmluZGluZ3NfZnJvbV9ycy90ZXN0L2dvbGRlbi9mdW5jdGlvbl9hbm5vdGF0aW9ucy5ycyIsImxhbmd1YWdlIjoicnVzdCJ9fV19
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Automatically @generated C++ bindings for the following Rust crate:
// function_annotations_rust_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, wrapper
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, unsafe_view, wrapper

#![allow(unused_unsafe, deprecated, non_snake_case, unreachable_code)]
#![allow(improper_ctypes_definitions)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Automatically @generated C++ bindings for the following Rust crate:
// non_trivially_destructible_rust_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor,
// std_unique_ptr, std_vector, supported, wrapper
// std_unique_ptr, std_vector, supported, unsafe_view, wrapper

// clang-format off
#ifndef THIRD_PARTY_CRUBIT_CC_BINDINGS_FROM_RS_TEST_GOLDEN_NON_TRIVIALLY_DESTRUCTIBLE_RUST_GOLDEN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Automatically @generated C++ bindings for the following Rust crate:
// non_trivially_destructible_rust_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, wrapper
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, unsafe_view, wrapper

#![allow(unused_unsafe, deprecated, non_snake_case, unreachable_code)]
#![allow(improper_ctypes_definitions)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Automatically @generated C++ bindings for the following Rust crate:
// struct_with_conflicting_fields_and_member_functions_rust_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor,
// std_unique_ptr, std_vector, supported, wrapper
// std_unique_ptr, std_vector, supported, unsafe_view, wrapper

// clang-format off
#ifndef THIRD_PARTY_CRUBIT_CC_BINDINGS_FROM_RS_TEST_GOLDEN_STRUCT_WITH_CONFLICTING_FIELDS_AND_MEMBER_FUNCTIONS_RUST_GOLDEN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Automatically @generated C++ bindings for the following Rust crate:
// struct_with_conflicting_fields_and_member_functions_rust_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, wrapper
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, unsafe_view, wrapper

#![allow(unused_unsafe, deprecated, non_snake_case, unreachable_code)]
#![allow(improper_ctypes_definitions)]
Expand Down
4 changes: 2 additions & 2 deletions cc_bindings_from_rs/test/golden/tag_decl_annotations_cc_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Automatically @generated C++ bindings for the following Rust crate:
// tag_decl_annotations_rust_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor,
// std_unique_ptr, std_vector, supported, wrapper
// std_unique_ptr, std_vector, supported, unsafe_view, wrapper

// clang-format off
#ifndef THIRD_PARTY_CRUBIT_CC_BINDINGS_FROM_RS_TEST_GOLDEN_TAG_DECL_ANNOTATIONS_RUST_GOLDEN
Expand Down Expand Up @@ -93,4 +93,4 @@ inline void SomeStruct::__crubit_field_offset_assertions() {
#pragma clang diagnostic pop
#endif // THIRD_PARTY_CRUBIT_CC_BINDINGS_FROM_RS_TEST_GOLDEN_TAG_DECL_ANNOTATIONS_RUST_GOLDEN

// This file contains Kythe metadata. eyJ0eXBlIjoia3l0aGUwIiwibWV0YSI6W3sidHlwZSI6ImFuY2hvcl9hbmNob3IiLCJzb3VyY2VfYmVnaW4iOjI2NCwic291cmNlX2VuZCI6MjcyLCJ0YXJnZXRfYmVnaW4i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generated C++ bindings for the following Rust crate:
// tag_decl_annotations_rust_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, wrapper
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, unsafe_view, wrapper

#![allow(unused_unsafe, deprecated, non_snake_case, unreachable_code)]
#![allow(improper_ctypes_definitions)]
Expand Down
2 changes: 1 addition & 1 deletion cc_bindings_from_rs/test/golden/type_aliases_cc_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Automatically @generated C++ bindings for the following Rust crate:
// type_aliases_rust_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor,
// std_unique_ptr, std_vector, supported, wrapper
// std_unique_ptr, std_vector, supported, unsafe_view, wrapper

// clang-format off
#ifndef THIRD_PARTY_CRUBIT_CC_BINDINGS_FROM_RS_TEST_GOLDEN_TYPE_ALIASES_RUST_GOLDEN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Automatically @generated C++ bindings for the following Rust crate:
// type_aliases_rust_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, wrapper
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, unsafe_view, wrapper

#![allow(unused_unsafe, deprecated, non_snake_case, unreachable_code)]
#![allow(improper_ctypes_definitions)]
Expand Down
2 changes: 1 addition & 1 deletion cc_bindings_from_rs/test/golden/uses_cc_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Automatically @generated C++ bindings for the following Rust crate:
// uses_rust_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor,
// std_unique_ptr, std_vector, supported, wrapper
// std_unique_ptr, std_vector, supported, unsafe_view, wrapper

// clang-format off
#ifndef THIRD_PARTY_CRUBIT_CC_BINDINGS_FROM_RS_TEST_GOLDEN_USES_RUST_GOLDEN
Expand Down
2 changes: 1 addition & 1 deletion cc_bindings_from_rs/test/golden/uses_cc_api_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Automatically @generated C++ bindings for the following Rust crate:
// uses_rust_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, wrapper
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, unsafe_view, wrapper

#![allow(unused_unsafe, deprecated, non_snake_case, unreachable_code)]
#![allow(improper_ctypes_definitions)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Automatically @generated C++ bindings for the following Rust crate:
// primitive_types_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor,
// std_unique_ptr, std_vector, supported, wrapper
// std_unique_ptr, std_vector, supported, unsafe_view, wrapper

// clang-format off
#ifndef THIRD_PARTY_CRUBIT_CC_BINDINGS_FROM_RS_TEST_PRIMITIVE_TYPES_PRIMITIVE_TYPES_GOLDEN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Automatically @generated C++ bindings for the following Rust crate:
// primitive_types_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, wrapper
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, unsafe_view, wrapper

#![allow(unused_unsafe, deprecated, non_snake_case, unreachable_code)]
#![allow(improper_ctypes_definitions)]
Expand Down
2 changes: 1 addition & 1 deletion cc_bindings_from_rs/test/traits/traits_cc_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Automatically @generated C++ bindings for the following Rust crate:
// traits_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor,
// std_unique_ptr, std_vector, supported, wrapper
// std_unique_ptr, std_vector, supported, unsafe_view, wrapper

// clang-format off
#ifndef THIRD_PARTY_CRUBIT_CC_BINDINGS_FROM_RS_TEST_TRAITS_TRAITS_GOLDEN
Expand Down
2 changes: 1 addition & 1 deletion cc_bindings_from_rs/test/traits/traits_cc_api_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Automatically @generated C++ bindings for the following Rust crate:
// traits_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, wrapper
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, unsafe_view, wrapper

#![allow(unused_unsafe, deprecated, non_snake_case, unreachable_code)]
#![allow(improper_ctypes_definitions)]
Expand Down
2 changes: 1 addition & 1 deletion cc_bindings_from_rs/test/tuples/tuples_cc_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Automatically @generated C++ bindings for the following Rust crate:
// tuples_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor,
// std_unique_ptr, std_vector, supported, wrapper
// std_unique_ptr, std_vector, supported, unsafe_view, wrapper

// clang-format off
#ifndef THIRD_PARTY_CRUBIT_CC_BINDINGS_FROM_RS_TEST_TUPLES_TUPLES_GOLDEN
Expand Down
2 changes: 1 addition & 1 deletion cc_bindings_from_rs/test/tuples/tuples_cc_api_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Automatically @generated C++ bindings for the following Rust crate:
// tuples_golden
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, wrapper
// Features: callables, custom_ffi_types, experimental, fmt, non_unpin_ctor, std_unique_ptr, std_vector, supported, unsafe_view, wrapper

#![allow(unused_unsafe, deprecated, non_snake_case, unreachable_code)]
#![allow(improper_ctypes_definitions)]
Expand Down
6 changes: 6 additions & 0 deletions common/crubit_feature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ flagset::flags! {

/// Enable experimental support for `rs_std::DynCallable` and `absl::AnyInvocable`.
Callables,

/// Mark C++ types with `[[gsl::Pointer]]` as unsafe.
UnsafeView,
}
}

Expand All @@ -63,6 +66,7 @@ impl CrubitFeature {
Self::AssumeLifetimes => "assume_lifetimes",
Self::Fmt => "fmt",
Self::Callables => "callables",
Self::UnsafeView => "unsafe_view",
}
}

Expand All @@ -81,6 +85,7 @@ impl CrubitFeature {
Self::AssumeLifetimes => "//features:assume_lifetimes",
Self::Fmt => "//features:fmt",
Self::Callables => "//features:callables",
Self::UnsafeView => "//features:unsafe_view",
}
}
}
Expand All @@ -100,6 +105,7 @@ pub fn named_features(name: &[u8]) -> Option<flagset::FlagSet<CrubitFeature>> {
b"assume_lifetimes" => CrubitFeature::AssumeLifetimes.into(),
b"fmt" => CrubitFeature::Fmt.into(),
b"callables" => CrubitFeature::Callables.into(),
b"unsafe_view" => CrubitFeature::UnsafeView.into(),
_ => return None,
};
Some(features)
Expand Down
Loading
Loading