Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
redox-os
cbindgen
Commits
203e676f
Commit
203e676f
authored
Jun 21, 2017
by
Ryan Hunt
Browse files
Create a mod for cargo related commands
parent
7a60c528
Changes
7
Hide whitespace changes
Inline
Side-by-side
src/bindgen/cargo.rs
→
src/bindgen/cargo
/cargo
.rs
View file @
203e676f
...
...
@@ -4,10 +4,10 @@
use
std
::
path
::{
Path
,
PathBuf
};
use
bindgen
::
cargo_expand
;
use
bindgen
::
cargo_lock
::{
self
,
Lock
};
use
bindgen
::
cargo_metadata
::{
self
,
Metadata
};
use
bindgen
::
cargo_toml
;
use
bindgen
::
cargo
::
cargo
_expand
;
use
bindgen
::
cargo
::
cargo
_lock
::{
self
,
Lock
};
use
bindgen
::
cargo
::
cargo
_metadata
::{
self
,
Metadata
};
use
bindgen
::
cargo
::
cargo
_toml
;
fn
parse_dep_string
(
dep_string
:
&
str
)
->
(
&
str
,
&
str
)
{
let
split
:
Vec
<&
str
>
=
dep_string
.split_whitespace
()
.collect
();
...
...
src/bindgen/cargo_expand.rs
→
src/bindgen/cargo
/cargo
_expand.rs
View file @
203e676f
File moved
src/bindgen/cargo_lock.rs
→
src/bindgen/cargo
/cargo
_lock.rs
View file @
203e676f
File moved
src/bindgen/cargo_metadata.rs
→
src/bindgen/cargo
/cargo
_metadata.rs
View file @
203e676f
File moved
src/bindgen/cargo_toml.rs
→
src/bindgen/cargo
/cargo
_toml.rs
View file @
203e676f
File moved
src/bindgen/cargo/mod.rs
0 → 100644
View file @
203e676f
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
mod
cargo
;
mod
cargo_expand
;
mod
cargo_lock
;
mod
cargo_metadata
;
mod
cargo_toml
;
pub
use
self
::
cargo
::
*
;
src/bindgen/mod.rs
View file @
203e676f
...
...
@@ -35,10 +35,6 @@ macro_rules! deserialize_enum_str {
}
mod
cargo
;
mod
cargo_expand
;
mod
cargo_lock
;
mod
cargo_metadata
;
mod
cargo_toml
;
mod
cdecl
;
mod
config
;
mod
annotation
;
...
...
@@ -52,4 +48,3 @@ mod writer;
pub
use
self
::
cargo
::
*
;
pub
use
self
::
config
::
*
;
pub
use
self
::
library
::{
GeneratedBindings
,
Library
};
pub
use
self
::
cargo_toml
::
manifest
;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment