Skip to content

Commit

Permalink
rust-salsa-macros: Make compatible with new rust-heck.
Browse files Browse the repository at this point in the history
- add phase
- add exception to 'custom-phases' to find the phase
  • Loading branch information
emixa-d committed Jun 23, 2022
1 parent d6351cc commit 0dd3fc5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions antioxidant-packages.scm
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,14 @@ fn _find_target_dir_unused(out_dir: &Path) -> TargetDir {"
(lambda _
(substitute* "src/lib.rs"
(("heck::KebabCase::to_kebab_case") "heck::ToKebabCase::to_kebab_case"))))))
;; TODO: upstream
("rust-salsa-macros"
,#~((add-after 'unpack 'new-heck-compatibility
(lambda _
(substitute* '("src/database_storage.rs" "src/query_group.rs")
(("heck::SnakeCase") "heck::ToSnakeCase")
(("heck::CamelCase") "heck::ToUpperCamelCase")
(("to_camel_case") "to_upper_camel_case"))))))
;; TODO: Upstream/update
("rust-cbindgen"
,#~((add-after 'unpack 'use-existing
Expand Down Expand Up @@ -625,6 +633,8 @@ fn _find_target_dir_unused(out_dir: &Path) -> TargetDir {"
;; likewise
((? (cut string-prefix? "rust-mesalink-1.1.0-cratesio" <>) name)
"rust-mesalink")
((? (cut string-prefix? "rust-salsa-macros-0.17.0-pre.2" <>) name)
"rust-salsa-macros")
(_ (drop-version name)))))
(match (assoc name %custom-phases)
((_ phases) phases)
Expand Down

0 comments on commit 0dd3fc5

Please sign in to comment.