Skip to content

Simplify solana contract stub#480

Merged
volovyks merged 3 commits intodevelopfrom
serhii/remove-fake-solana-contract
Aug 22, 2025
Merged

Simplify solana contract stub#480
volovyks merged 3 commits intodevelopfrom
serhii/remove-fake-solana-contract

Conversation

@volovyks
Copy link
Copy Markdown
Contributor

There is no way to remove the contract, but I've managed to remove the additional workspace and 70% of the setup. Now it's a simple Rust project with a single dependency.

Comment on lines -5 to -12
[profile.release]
overflow-checks = true
lto = "fat"
codegen-units = 1
[profile.release.build-override]
opt-level = 3
incremental = false
codegen-units = 1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this is no longer needed? Also looks like we're missing

[lib]
crate-type = ["cdylib", "lib"]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like [lib] was enough to fix the build

@volovyks
Copy link
Copy Markdown
Contributor Author

@ChaoticTempest any blockers on this one?

@ChaoticTempest
Copy link
Copy Markdown
Contributor

how are we building this contract? I don't see any instructions to do this? I'm trying anchor build inside contract-sol but getting:

thread 'main' panicked at cli/src/lib.rs:1367:47:
Not in workspace.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@volovyks
Copy link
Copy Markdown
Contributor Author

@ChaoticTempest
It is getting built with cargo build as a part of our workspace.
Compiling signet-program v0.1.0 (/Users/serhii/Projects/mpc/chain-signatures/contract-sol)

Also, you can build it with cargo build inside of the /chain-signatures/contract-sol, since it is a regular rust crate now, no Anchor framework anymore.

Again, this is not a real contract, this is just a way to provide structs for our sol rpc.

@volovyks volovyks merged commit 8f3a607 into develop Aug 22, 2025
3 checks passed
@volovyks volovyks deleted the serhii/remove-fake-solana-contract branch August 22, 2025 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants