This is liable to change in the future.
A prebuilt_rust_library() specifies a pre-built Rust crate, and any dependencies it may have on other crates (typically also prebuilt).
Note: Buck is currently tested with (and therefore supports) version 1.32.0 of Rust.
The name of the rule.
Path to the precompiled Rust crate - typically of the form 'libfoo.rlib', or 'libfoo-abc123def456.rlib' if it has symbol versioning metadata.
rule name) #
Set the generated crate name (for libraries) or executable name (for binaries), independent of the rule name. Defaults to the rule name.
The set of dependencies of this rule. Currently, this supports rust_library and prebuilt_rust_library rules.
List of build target patterns that identify the build rules that can include this rule as a dependency, for example, by listing it in their
exported_depsattributes. For more information, see visibility.
prebuilt_rust_library( name = 'dailygreet', rlib = 'libdailygreet.rlib', deps = [ ':jinsy', ], ) prebuilt_rust_library( name = 'jinsy', rlib = 'libarbiter-6337e9cb899bd295.rlib', )