-
Notifications
You must be signed in to change notification settings - Fork 30
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
[WIP] Improve windows support #120
base: master
Are you sure you want to change the base?
Conversation
…luejekyll/pg-extend-rs into improve-test-feature-execution
…luejekyll/pg-extend-rs into improve-test-feature-execution
…luejekyll/pg-extend-rs into improve-test-feature-execution
# Conflicts: # examples/adding/src/lib.rs
fn main() { | ||
const LIB_NAME: &str = env!("CARGO_PKG_NAME"); | ||
let lib_name = env!("CARGO_PKG_NAME").replace("-", "_"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When building, the resulting files will always use underscores, so we need to replace dashes with underscores, otherwise there's a mismatch
else { | ||
panic!("Cannot mix Option and non-Option arguments."); | ||
} | ||
if !optional_args.iter().any(|&x| x) { " STRICT" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This allows for mixing Option with non-Option arguments.
This PR includes:
eprintln!()
we can at least avoid crashes and write to PG log.&[T]
support: only execute unsafe code inside unsafe blocks; safe code moved out of unsafe blocksrustflags
for Windows builds (pointing topostgres.lib
)