-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix rust bindings build on windows #1584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 9 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ddfd59d
unify rust build.rs for win/nix and fix it on windows
shuffle2 416c256
msvc: quiet some warnings
shuffle2 4bc949c
update gh workflow for rust
shuffle2 79f9d37
sigp_set_architecture DNE so dont reference it
shuffle2 cd703f7
cmake: set C standard to C11
shuffle2 a6edb22
rust msvc: hack around symbol name collisions
shuffle2 e8e5f77
rust: set some args from build.rs instead of hardcoding
shuffle2 0f6dc90
rust allow-multiple-definition for non-msvc
shuffle2 e4a25ce
cmake: expect msvcrt setting in CMAKE_C_FLAGS
shuffle2 18963eb
yet another try to make CI happy
shuffle2 1604239
workaround cc misdetection on mac
shuffle2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,44 @@ | ||
[package] | ||
name = "unicorn-engine" | ||
version = "2.0.0-rc6" | ||
authors = ["Ziqiao Kong", "Lukas Seidel"] | ||
documentation = "https://github.com/unicorn-engine/unicorn/wiki" | ||
edition = "2021" | ||
license = "GPL-2.0" | ||
readme = "README.md" | ||
repository = "https://github.com/unicorn-engine/unicorn" | ||
description = "Rust bindings for the Unicorn emulator with utility functions" | ||
build = "bindings/rust/build.rs" | ||
links = "unicorn" | ||
# use `cargo publish --list` to see files to be included | ||
# the resulting list what cargo uses to check for out-of-date files during build | ||
exclude = [ | ||
"/docs", | ||
"/bindings/dotnet", | ||
"/bindings/go", | ||
"/bindings/haskell", | ||
"/bindings/java", | ||
"/bindings/pascal", | ||
"/bindings/python", | ||
"/bindings/ruby", | ||
"/bindings/vb6", | ||
"/samples", | ||
"/tests", | ||
] | ||
|
||
[lib] | ||
path = "bindings/rust/src/lib.rs" | ||
|
||
[dependencies] | ||
bitflags = "1.3" | ||
libc = "0.2" | ||
|
||
[build-dependencies] | ||
cc = { optional = true, version = "1.0" } | ||
cmake = { optional = true, version = "0.1" } | ||
pkg-config = { optional = true, version = "0.3" } | ||
|
||
[features] | ||
default = ["build_unicorn_cmake"] | ||
build_unicorn_cmake = ["cc", "cmake"] | ||
use_system_unicorn = ["pkg-config"] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.