blob: 091fd3ccba3b11d79e844e6716990e22f989d08b [file] [log] [blame]
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
{namespace prebuilt_rust_library}
/***/
{template .soyweb}
{call buck.page}
{param title: 'prebuilt_rust_library()' /}
{param navid: 'rule_prebuilt_rust_library' /}
{param prettify: true /}
{param description}
A prebuilt_rust_library() rule makes a pre-built Rust crate available as a dependency.
{/param}
{param content}
{call buck.rule}
{param status: 'UNFROZEN' /}
{param overview}
<p>
A prebuilt_rust_library() specifies a pre-built Rust crate, and any dependencies
it may have on other crates (typically also prebuilt).
</p>
<p>
{call rust_common.supported_language_version /}
</p>
{/param}
{param args}
{call buck.name_arg /}
{call buck.arg}
{param name: 'rlib' /}
{param desc}
Path to the precompiled Rust crate - typically of the form 'libfoo.rlib', or
'libfoo-abc123def456.rlib' if it has symbol versioning metadata.
{/param}
{/call}
{call rust_common.crate /}
{call rust_common.deps_arg /}
{call buck.platform_deps_arg /}
{/param} // close args
{param examples}
{literal}<pre class="prettyprint lang-py">
prebuilt_rust_library(
name = 'dailygreet',
rlib = 'libdailygreet.rlib',
deps = [
':jinsy',
],
)
prebuilt_rust_library(
name = 'jinsy',
rlib = 'libarbiter-6337e9cb899bd295.rlib',
)
</pre>{/literal}
{/param}
{/call} // close buck.rule
{/param}
{/call}
{/template}