Skip to content

Avoid to simlulate the existance of std.#1

Open
0ndorio wants to merge 3 commits into
ctron:masterfrom
0ndorio:task/clean_sys_api
Open

Avoid to simlulate the existance of std.#1
0ndorio wants to merge 3 commits into
ctron:masterfrom
0ndorio:task/clean_sys_api

Conversation

@0ndorio
Copy link
Copy Markdown

@0ndorio 0ndorio commented Jul 25, 2019

The current version of esp32-sys is required to simulate the existance of std::os::raw as the bindings are generated without the --cyptes-prefix flag. Without this flag any libc related types are automatically imported via ::std::os::raw.

This is also the reason why the esp32-sys crate couldn't be compiled with the edition = "2018" flag.

(see ctron/rust-esp-container#2 for the required change inside the template repository)

0ndorio added 3 commits July 18, 2019 16:44
The main reason to re-export core from here was to simulate the
standard library to ensure that the generated bindings are able
to find all required data types at their expected locations.

This is longer necessary as the bindings are now generated with
an additional flag to ensure that they directly use core instead
of std.
Bindings are now generated in a way that allows to pass a custom
module name which is expected to contain all required ctypes. As
a result we are no longe required to simulate the existance of
std.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant