Move remaining runtime libraries to `crubit/support`.
This is not "obviously" correct: the current contents of crubit/support are only the runtime libraries that are present in generated code. But I don't think that's an important distinction -- rather, I think it's valuable to have all user-facing libraries in the same place.
(I would be "support"-ive of basically any directory scheme that puts them together. An alternative design, for example, is to unwrap `support/*` into `third_party/crubit`, so that people depend on `crubit:foo` instead of `crubit/support:foo`. Alternatively, we could rename `support` to `public` or `lib`, but keep it as is. Or, finally, we can just keep it as is.)
For now, moving into `support` makes it easier to find the user-facing libraries.
PiperOrigin-RevId: 504107815
diff --git a/rs_bindings_from_cc/test/cc_import/BUILD b/rs_bindings_from_cc/test/cc_import/BUILD
index 100a2bd..8c7273c 100644
--- a/rs_bindings_from_cc/test/cc_import/BUILD
+++ b/rs_bindings_from_cc/test/cc_import/BUILD
@@ -22,7 +22,7 @@
":two",
],
proc_macro_deps = [
- "//cc_import",
+ "//support/cc_import",
],
)
diff --git a/cc_import/BUILD b/support/cc_import/BUILD
similarity index 100%
rename from cc_import/BUILD
rename to support/cc_import/BUILD
diff --git a/cc_import/cc_import.rs b/support/cc_import/cc_import.rs
similarity index 100%
rename from cc_import/cc_import.rs
rename to support/cc_import/cc_import.rs
diff --git a/cc_import/cc_import_internal.rs b/support/cc_import/cc_import_internal.rs
similarity index 100%
rename from cc_import/cc_import_internal.rs
rename to support/cc_import/cc_import_internal.rs
diff --git a/cc_import/merged_namespaces.rs b/support/cc_import/merged_namespaces.rs
similarity index 100%
rename from cc_import/merged_namespaces.rs
rename to support/cc_import/merged_namespaces.rs
diff --git a/cc_template/BUILD b/support/cc_template/BUILD
similarity index 100%
rename from cc_template/BUILD
rename to support/cc_template/BUILD
diff --git a/cc_template/cc_template.rs b/support/cc_template/cc_template.rs
similarity index 100%
rename from cc_template/cc_template.rs
rename to support/cc_template/cc_template.rs
diff --git a/cc_template/cc_template_impl.rs b/support/cc_template/cc_template_impl.rs
similarity index 100%
rename from cc_template/cc_template_impl.rs
rename to support/cc_template/cc_template_impl.rs
diff --git a/cc_template/test/BUILD b/support/cc_template/test/BUILD
similarity index 86%
rename from cc_template/test/BUILD
rename to support/cc_template/test/BUILD
index eb46cd7..eb79fae 100644
--- a/cc_template/test/BUILD
+++ b/support/cc_template/test/BUILD
@@ -10,7 +10,7 @@
"cc_template_integration_test.rs",
],
data = ["__cc_template_instantiations.json"],
- proc_macro_deps = ["//cc_template:cc_template"],
+ proc_macro_deps = ["//support/cc_template:cc_template"],
rustc_env = {
"CRUBIT_INSTANTIATIONS_FILE": "$(location __cc_template_instantiations.json)",
},
diff --git a/cc_template/test/__cc_template_instantiations.json b/support/cc_template/test/__cc_template_instantiations.json
similarity index 100%
rename from cc_template/test/__cc_template_instantiations.json
rename to support/cc_template/test/__cc_template_instantiations.json
diff --git a/cc_template/test/__cc_template_instantiations_rs_api.rs b/support/cc_template/test/__cc_template_instantiations_rs_api.rs
similarity index 100%
rename from cc_template/test/__cc_template_instantiations_rs_api.rs
rename to support/cc_template/test/__cc_template_instantiations_rs_api.rs
diff --git a/cc_template/test/cc_template_integration_test.rs b/support/cc_template/test/cc_template_integration_test.rs
similarity index 100%
rename from cc_template/test/cc_template_integration_test.rs
rename to support/cc_template/test/cc_template_integration_test.rs