blob: 7cb276ba948f3ad5daff2779d977493cde22f0be [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Header file for using this crate from C. Note that this could be generated
// by cbindgen (https://github.com/eqrion/cbindgen), but it should still be
// checked in rather than generated by the build.
#ifndef GARNET_EXAMPLES_RUST_STATICLIB_RUST_CRUST_H_
#define GARNET_EXAMPLES_RUST_STATICLIB_RUST_CRUST_H_
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
// Returns an integer from the Rust crate.
int32_t crust_get_int(void);
#ifdef __cplusplus
}
#endif
#endif // GARNET_EXAMPLES_RUST_STATICLIB_RUST_CRUST_H_