[package] cargo-toml-patch-comments = [ "Disable feature \"vendored\"", "Remove unused test dependencies", ] [[package.extra-patches]] comments = ["Downgrade allocator-api2 dependency to 0.2.x"] file = "0001-Revert-chore-update-allocator-api2-to-0.3.1.patch" number = 2 [[package.extra-patches]] comments = ["Fix tests on 32-bit platforms (nginx/ngx-rust#214)"] file = "ngx-0.5.0-test-fix-logger-tests-on-32-bit-platforms.patch" number = 3 [scripts.build] pre = [ "# generate headers for bindgen", "touch config", "%nginx_modconfigure", "export NGINX_BUILD_DIR=$(realpath %{_vpath_builddir})", "export NGINX_SOURCE_DIR=$(realpath %{_nginx_buildsrcdir})", ] [scripts.check] pre = [ "export NGINX_BUILD_DIR=$(realpath %{_vpath_builddir})", "export NGINX_SOURCE_DIR=$(realpath %{_nginx_buildsrcdir})", ] [requires] build = ["nginx-mod-devel"]