From f332408aa40e5482f7f9e5675e0ee700f93ef825 Mon Sep 17 00:00:00 2001 From: Nasr Date: Mon, 6 Oct 2025 14:55:00 -0500 Subject: [PATCH] fix(cbindgen): fork with no enum forward decl --- Cargo.lock | 2 +- Cargo.toml | 2 +- dojo.h | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9c86797..dc0d3a3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -912,7 +912,7 @@ dependencies = [ [[package]] name = "cbindgen" version = "0.27.0" -source = "git+https://github.com/masnagam/cbindgen?branch=fix-issue-43#7fcd29d7a7bd204cff6887ae099aa40f716367ed" +source = "git+https://github.com/Larkooo/cbindgen?branch=no-c-forward-enum#1df076f7559fbfeb3f9d5c9968c1c1630363ebc8" dependencies = [ "clap", "heck 0.4.1", diff --git a/Cargo.toml b/Cargo.toml index 3667737..aaacc30 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -70,7 +70,7 @@ base64 = "0.22.1" # see. https://github.com/mozilla/cbindgen/issues/43 # cbindgen = { git = "https://github.com/flaviojs/cbindgen_tmp", branch = "resolve-order-dependencies-clike" } # cbindgen = "0.29" -cbindgen = { git = "https://github.com/masnagam/cbindgen", branch = "fix-issue-43" } +cbindgen = { git = "https://github.com/Larkooo/cbindgen", branch = "no-c-forward-enum" } [dev-dependencies] diff --git a/dojo.h b/dojo.h index 270fe57..5d846e7 100644 --- a/dojo.h +++ b/dojo.h @@ -24,7 +24,6 @@ struct Token; struct AttributeFilter; struct TokenBalance; struct TokenContract; -enum ContractType; struct Contract; struct TokenTransfer; struct Provider;