Fixed the library to use the new Rust 2018 module system.
This commit is contained in:
parent
824605a198
commit
7fcc81dedb
@ -7,6 +7,7 @@ license = ""
|
|||||||
repository = "https://gitlab.com/CyberMages/Core/binding.git"
|
repository = "https://gitlab.com/CyberMages/Core/binding.git"
|
||||||
documentation = ""
|
documentation = ""
|
||||||
keywords = ["binding", "c types", "c enums", "c flags", "c strings"]
|
keywords = ["binding", "c types", "c enums", "c flags", "c strings"]
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
@ -7,7 +7,7 @@ c_enum!
|
|||||||
{
|
{
|
||||||
/// Test enum is a simple enum testing the
|
/// Test enum is a simple enum testing the
|
||||||
/// capabilities of creating a C enum.
|
/// capabilities of creating a C enum.
|
||||||
enum TestEnum : i32
|
enum TestEnum: i32
|
||||||
{
|
{
|
||||||
/// This is the first item.
|
/// This is the first item.
|
||||||
variant One = 1,
|
variant One = 1,
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
#[cfg(not(feature="use_std"))]
|
#[cfg(not(feature="use_std"))]
|
||||||
extern crate core as std;
|
extern crate core as std;
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate scribe;
|
extern crate scribe;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user