Skip to content

Commit

Permalink
diesel 2.2.0
Browse files Browse the repository at this point in the history
diesel: generate db bindings during build time

Signed-off-by: Rui Chen <[email protected]>

diesel: update build

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
BrewTestBot authored and chenrui333 committed Jun 3, 2024
1 parent 9a6fbb3 commit 0b18037
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Formula/d/diesel.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Diesel < Formula
desc "Command-line tool for Rust ORM Diesel"
homepage "https://diesel.rs"
url "https://github.com/diesel-rs/diesel/archive/refs/tags/v2.1.6.tar.gz"
sha256 "60775915f615d41b65f31861ed01e467961677b7e430c6cc58d22c0b9bc17baf"
url "https://github.com/diesel-rs/diesel/archive/refs/tags/v2.2.0.tar.gz"
sha256 "d978c5a29177b803e7170f988e228e3c520306f8f905496b1be3d59dfc181ac5"
license any_of: ["Apache-2.0", "MIT"]
head "https://github.com/diesel-rs/diesel.git", branch: "master"

Expand All @@ -16,14 +16,19 @@ class Diesel < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "ebb91ee005288c425def9da870ff6c51de494e1417d0ad52d486e2297a44c5c1"
end

depends_on "pkg-config" => :build # db binding generation
depends_on "rust" => [:build, :test]
depends_on "libpq"
depends_on "mysql-client"

uses_from_macos "llvm" => :build # for libclang
uses_from_macos "sqlite"

def install

Check failure on line 27 in Formula/d/diesel.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew install --verbose --formula --build-bottle diesel` failed on Linux!

Downloaded utf8parse v0.2.1 Downloaded bindgen v0.69.4 Downloaded aho-corasick v1.1.3 Downloaded url v2.5.0 Downloaded anstream v0.6.14 Downloaded anstyle v1.0.7 Downloaded anstyle-query v1.0.3 Downloaded winnow v0.6.10 Downloaded heck v0.5.0 Downloaded vcpkg v0.2.15 Downloaded tracing-attributes v0.1.27 Downloaded unicode-normalization v0.1.23 Downloaded strsim v0.11.1 Downloaded toml_datetime v0.6.6 Downloaded rustc-hash v1.1.0 Downloaded unicode-ident v1.0.12 Downloaded serde v1.0.203 Downloaded tracing-core v0.1.32 Downloaded toml_edit v0.22.14 Downloaded tracing-subscriber v0.3.18 Downloaded hashbrown v0.14.5 Downloaded regex-syntax v0.6.29 Downloaded time v0.3.36 Downloaded regex-automata v0.1.10 Downloaded itertools v0.12.1 Downloaded syn v2.0.66 Downloaded memchr v2.7.2 Downloaded idna v0.5.0 Downloaded libc v0.2.155 Downloaded tracing v0.1.40 Downloaded regex-syntax v0.8.3 Downloaded tinyvec v1.6.0 Downloaded rustix v0.38.34 Downloaded time-macros v0.2.18 Downloaded sharded-slab v0.1.7 Downloaded pq-sys v0.6.0 Downloaded nom v7.1.3 Downloaded proc-macro2 v1.0.85 Downloaded prettyplease v0.2.20 Downloaded once_cell v1.19.0 Downloaded log v0.4.21 Downloaded libloading v0.8.3 Downloaded thiserror-impl v1.0.61 Downloaded regex-automata v0.4.6 Downloaded smallvec v1.13.2 Downloaded serde_spanned v0.6.6 Downloaded overload v0.1.1 Downloaded mysqlclient-sys v0.3.1 Downloaded is_terminal_polyfill v1.70.0 Downloaded home v0.5.9 Downloaded powerfmt v0.2.0 Downloaded percent-encoding v2.3.1 Downloaded num-traits v0.2.19 Downloaded nu-ansi-term v0.46.0 Downloaded lazy_static v1.4.0 Downloaded itoa v1.0.11 Downloaded glob v0.3.1 Downloaded errno v0.3.9 Downloaded diffy v0.3.0 Downloaded darling v0.20.9 Downloaded unicode-bidi v0.3.15 Downloaded tracing-log v0.2.0 Downloaded time-core v0.1.2 Downloaded shlex v1.3.0 Downloaded serde_regex v1.1.0 Downloaded serde_derive v1.0.203 Downloaded regex v1.10.4 Downloaded pkg-config v0.3.30 Downloaded pin-project-lite v0.2.14 Downloaded minimal-lexical v0.2.1 Downloaded lazycell v1.3.0 Downloaded indexmap v2.2.6 Downloaded ident_case v1.0.1 Downloaded form_urlencoded v1.2.1 Downloaded fnv v1.0.7 Downloaded clap_builder v4.5.2 Downloaded byteorder v1.5.0 Downloaded toml v0.8.14 Downloaded tinyvec_macros v0.1.1 Downloaded thread_local v1.1.8 Downloaded thiserror v1.0.61 Downloaded num-conv v0.1.0 Downloaded matchers v0.1.0 Downloaded iana-time-zone v0.1.60 Downloaded either v1.12.0 Downloaded clap_lex v0.7.0 Downloaded cexpr v0.6.0 Downloaded quote v1.0.36 Downloaded equivalent v1.0.1 Downloaded clap_complete v4.5.2 Downloaded clap v4.5.4 Downloaded clang-sys v1.8.1 Downloaded chrono v0.4.38 Downloaded cfg-if v1.0.0 Downloaded dotenvy v0.15.7 Downloaded deranged v0.3.11 Downloaded darling_macro v0.20.9 Downloaded darling_core v0.20.9 Downloaded colorchoice v1.0.1 Downloaded linux-raw-sys v0.4.14 Downloaded libsqlite3-sys v0.28.0 warning: profile package spec `insta` in profile `dev` did not match any packages Did you mean `idna`? warning: profile package spec `similar` in profile `dev` did not match any packages Compiling proc-macro2 v1.0.85 Compiling unicode-ident v1.0.12 Compiling serde v1.0.203 Compiling either v1.12.0 Compiling glob v0.3.1 Compiling prettyplease v0.2.20 Compiling rustix v0.38.34 Compiling libc v0.2.155 Compiling clang-sys v1.8.1 Compiling minimal-lexical v0.2.1 Compiling cfg-if v1.0.0 Compiling quote v1.0.36 Compiling regex-syntax v0.8.3 Compiling memchr v2.7.2 Compiling syn v2.0.66 Compiling bitflags v2.5.0 Compiling linux-raw-sys v0.4.14 Compiling nom v7.1.3 Compiling regex-automata v0.4.6 Compiling libloading v0.8.3 Compiling bindgen v0.69.4 Compiling home v0.5.9 Compiling which v4.4.2 Compiling regex v1.10.4 Compiling cexpr v0.6.0 Compiling itertools v0.12.1 Compiling log v0.4.21
system "cargo", "install", *std_cargo_args(path: "diesel_cli")
# generate db bindings during build time to avoid version mismatch
# see discussions in https://github.com/diesel-rs/diesel/issues/4056
cargo_features = "mysqlclient-sys/buildtime_bindgen,pq-sys/buildtime_bindgen"
system "cargo", "install", "--features", *cargo_features, *std_cargo_args(path: "diesel_cli")
generate_completions_from_executable(bin/"diesel", "completions")
end

Expand Down

0 comments on commit 0b18037

Please sign in to comment.