-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from theotherjimmy/use-stable
Use stable rust
- Loading branch information
Showing
9 changed files
with
129 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
language: rust | ||
rust: nightly-2018-11-07 | ||
rust: stable | ||
cache: cargo | ||
|
||
install: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
name = "cmsis-cffi" | ||
version = "0.1.0" | ||
authors = ["Jimmy Brisson <[email protected]>"] | ||
build = "build.rs" | ||
|
||
[lib] | ||
name = "cmsis_cffi" | ||
|
@@ -18,6 +17,3 @@ cmsis-update = { path = "../cmsis-update" } | |
pack-index = { path = "../pack-index" } | ||
pdsc = { path = "../pdsc" } | ||
utils = { path = "../utils" } | ||
|
||
[build-dependencies] | ||
cbindgen = "~0.6.0" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# An optional string of text to output at the beginning of the generated file | ||
header = """ | ||
/* Unless specifically indicated otherwise in a file, files are licensed | ||
* under the Apache 2.0 license, as can be found in: apache-2.0.txt | ||
*/ | ||
""" | ||
# An optional name to use as an include guard | ||
include_guard = "_CMSIS_H_" | ||
# An optional string of text to output between major sections of the generated | ||
# file as a warning against manual editing | ||
autogen_warning = """ | ||
/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. | ||
* To regenerate use `rustup run nightly cbindgen . > cmsis.h` in this directory. | ||
*/ | ||
""" | ||
# Whether to include a comment with the version of cbindgen used to generate the | ||
# file | ||
include_version = true | ||
# The style to use for curly braces | ||
braces = "SameLine" | ||
# The desired length of a line to use when formatting lines | ||
line_length = 80 | ||
# The amount of spaces in a tab | ||
tab_width = 8 | ||
# The language to output bindings in | ||
language = "C" | ||
# A rule to use to select style of declaration in C, tagname vs typedef | ||
style = "Both" | ||
# How the generated documentation should be commented. | ||
# C uses /* */; C99 uses //; C++ uses ///; Doxy is like C but with leading * per line. | ||
documentation_style = "C" | ||
|
||
[parse] | ||
# Whether to parse dependent crates and include their types in the generated | ||
# bindings | ||
parse_deps = false | ||
# A white list of crate names that are allowed to be parsed | ||
include = ["cmsis-cffi"] | ||
# Whether to use a new temporary target directory when running `rustc --pretty=expanded`. | ||
# This may be required for some build processes. | ||
clean = false | ||
|
||
[parse.expand] | ||
# A list of crate names that should be run through `cargo expand` before | ||
# parsing to expand any macros | ||
crates = ["cmsis-cffi"] | ||
# If enabled, use the `--all-features` option when expanding. Ignored when | ||
# `features` is set. Disabled by default, except when using the | ||
# `expand = ["euclid"]` shorthand for backwards-compatibility. | ||
all_features = false | ||
# When `all_features` is disabled and this is also disabled, use the | ||
# `--no-default-features` option when expanding. Enabled by default. | ||
default_features = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
|
||
/* Unless specifically indicated otherwise in a file, files are licensed | ||
* under the Apache 2.0 license, as can be found in: apache-2.0.txt | ||
*/ | ||
|
||
|
||
#ifndef _CMSIS_H_ | ||
#define _CMSIS_H_ | ||
|
||
/* Generated with cbindgen:0.8.7 */ | ||
|
||
/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. | ||
* To regenerate use `rustup run nightly cbindgen . > cmsis.h` in this directory. | ||
*/ | ||
|
||
|
||
#include <stdarg.h> | ||
#include <stdbool.h> | ||
#include <stdint.h> | ||
#include <stdlib.h> | ||
|
||
typedef struct ParsedPacks ParsedPacks; | ||
|
||
typedef struct UpdatePoll UpdatePoll; | ||
|
||
typedef struct UpdateReturn UpdateReturn; | ||
|
||
typedef struct DownloadUpdate { | ||
bool is_size; | ||
uintptr_t size; | ||
} DownloadUpdate; | ||
|
||
void cstring_free(char *ptr); | ||
|
||
void dump_pdsc_json(ParsedPacks *packs, | ||
const char *devices_dest, | ||
const char *boards_dest); | ||
|
||
const char *dumps_components(ParsedPacks *ptr); | ||
|
||
const char *err_get_last_message(void); | ||
|
||
void err_last_message_free(char *ptr); | ||
|
||
UpdateReturn *pack_from_path(const char *ptr); | ||
|
||
ParsedPacks *parse_packs(UpdateReturn *ptr); | ||
|
||
void parse_packs_free(ParsedPacks *ptr); | ||
|
||
UpdatePoll *update_packs(const char *pack_store, ParsedPacks *parsed_packs); | ||
|
||
DownloadUpdate *update_pdsc_get_status(UpdatePoll *ptr); | ||
|
||
UpdatePoll *update_pdsc_index(const char *pack_store, const char *vidx_list); | ||
|
||
void update_pdsc_index_free(UpdateReturn *ptr); | ||
|
||
UpdateReturn *update_pdsc_index_new(void); | ||
|
||
const char *update_pdsc_index_next(UpdateReturn *ptr); | ||
|
||
void update_pdsc_index_push(UpdateReturn *ptr, char *cstr); | ||
|
||
bool update_pdsc_poll(UpdatePoll *ptr); | ||
|
||
UpdateReturn *update_pdsc_result(UpdatePoll *ptr); | ||
|
||
void update_pdsc_status_free(DownloadUpdate *ptr); | ||
|
||
#endif /* _CMSIS_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters