Skip to content
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

feat: conditional compilation support #97

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Commits on Nov 14, 2024

  1. chore: set edition for rustfmt

    `cargo fmt` already passes this option, but some editors prefer to call
    rustfmt directly.
    bavshin-f5 committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    6b2028f View commit details
    Browse the repository at this point in the history
  2. fix(sys): remove library type declaration

    nginx-sys cannot be used as rlib or as a static library.
    bavshin-f5 committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    030a983 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2024

  1. Configuration menu
    Copy the full SHA
    baf7b3a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cbd1cea View commit details
    Browse the repository at this point in the history
  3. ci: check build with MSRV

    bavshin-f5 committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    59a373b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fe25a4b View commit details
    Browse the repository at this point in the history
  5. feat: expose DEP_NGINX_ vars to the high-level bindings

    The example build script converts `DEP_NGINX_FEATURES`, `DEP_NGINX_OS`
    and `DEP_NGINX_VERSION_NUMBER` received from `nginx-sys` to the `cfg`
    values for conditional compilation.
    
    See tests for usage examples.
    bavshin-f5 committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    b7353c3 View commit details
    Browse the repository at this point in the history
  6. fix: set compiler flags for MacOS in the build script

    The flags set in cargo config will be ignored if the `RUSTFLAGS` is set.
    bavshin-f5 committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    79433ce View commit details
    Browse the repository at this point in the history
  7. docs(sys): move crate documentation to README

    Document cargo metadata variables set by the build script.
    bavshin-f5 committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    3e57973 View commit details
    Browse the repository at this point in the history