Skip to content

Docs: sncast config changes#4234

Open
DelevoXDG wants to merge 24 commits intomasterfrom
zdobnikau/sncast-config-docs
Open

Docs: sncast config changes#4234
DelevoXDG wants to merge 24 commits intomasterfrom
zdobnikau/sncast-config-docs

Conversation

@DelevoXDG
Copy link
Copy Markdown
Contributor

@DelevoXDG DelevoXDG commented Mar 30, 2026

WIP, awaiting feedback and final decisions in #4205

Stack

Checklist

  • Updated relevant documentation
  • Added changes to CHANGELOG.md

@DelevoXDG DelevoXDG changed the base branch from master to zdobnikau/fix-config-parsing March 30, 2026 16:31
@DelevoXDG DelevoXDG changed the base branch from zdobnikau/fix-config-parsing to zdobnikau/fix-config-parsing-2 April 13, 2026 11:33
@DelevoXDG DelevoXDG force-pushed the zdobnikau/sncast-config-docs branch from ea7e126 to 3dee6ae Compare April 13, 2026 11:36
@DelevoXDG DelevoXDG force-pushed the zdobnikau/fix-config-parsing-2 branch 2 times, most recently from be936a9 to c4174c6 Compare April 21, 2026 10:53
DelevoXDG added a commit that referenced this pull request Apr 24, 2026
<!-- Reference any GitHub issues resolved by this PR -->

Closes #3811
Closes #4027

## Stack
- #4175
- #4205 
- #4249 
- #4234 

## Summary

This PR fixes the actual bugs & issues I've been able to find, and
changes the sncast handling logic in a more significant way

## Introduced changes

<!-- A brief description of the changes -->
- 

## Checklist

<!-- Make sure all of these are complete -->

- [x] Linked relevant issue
- [ ] Updated relevant documentation
- [x] Added relevant tests
- [x] Performed self-review of the code
- [ ] Added changes to `CHANGELOG.md`

---------

Co-authored-by: ddoktorski <45050160+ddoktorski@users.noreply.github.com>
@DelevoXDG DelevoXDG force-pushed the zdobnikau/fix-config-parsing-2 branch from c4174c6 to 741b45c Compare April 24, 2026 08:24
DelevoXDG added a commit that referenced this pull request Apr 27, 2026
<!-- Reference any GitHub issues resolved by this PR -->

## Stack
- #4175
- #4205 
- #4249
- #4234 

## Introduced changes

<!-- A brief description of the changes -->

Allow configuring scarb profile separately from sncast config:
- `--scarb-profile` in cli
- `scarb-profile` in `snfoundry.toml` 

## Checklist

<!-- Make sure all of these are complete -->

- [ ] Linked relevant issue
- [x] Updated relevant documentation
- [ ] Added relevant tests
- [x] Performed self-review of the code
- [x] Added changes to `CHANGELOG.md`
Base automatically changed from zdobnikau/fix-config-parsing-2 to master April 27, 2026 08:48
@DelevoXDG DelevoXDG force-pushed the zdobnikau/sncast-config-docs branch from 3dee6ae to a21ac6e Compare April 27, 2026 12:26
@DelevoXDG DelevoXDG marked this pull request as ready for review April 27, 2026 13:18
@DelevoXDG DelevoXDG requested a review from a team April 27, 2026 13:18
DelevoXDG and others added 9 commits April 27, 2026 17:48
<!-- Reference any GitHub issues resolved by this PR -->

## Stack
- #4175
- #4205 
- #4249
- #4234 

## Introduced changes

<!-- A brief description of the changes -->

Allow configuring scarb profile separately from sncast config:
- `--scarb-profile` in cli
- `scarb-profile` in `snfoundry.toml` 

## Checklist

<!-- Make sure all of these are complete -->

- [ ] Linked relevant issue
- [x] Updated relevant documentation
- [ ] Added relevant tests
- [x] Performed self-review of the code
- [x] Added changes to `CHANGELOG.md`
@DelevoXDG DelevoXDG force-pushed the zdobnikau/sncast-config-docs branch from e3dac50 to 4109459 Compare April 27, 2026 13:55
die-herdplatte pushed a commit to die-herdplatte/starknet-foundry that referenced this pull request Apr 29, 2026
<!-- Reference any GitHub issues resolved by this PR -->

Towards foundry-rs#4027

## Stack
- foundry-rs#4175
- foundry-rs#4205 
- foundry-rs#4249 
- foundry-rs#4234 

## Introduced changes

<!-- A brief description of the changes -->

#### Outline

This is initial refactor of cast config handling. 

It aims to make the logic easier to reason about, removes tricky
defaults resolution (using `None` instead), removes manual raw string
approach config construction, and paves way for fixes introduced in
foundry-rs#4205


Subsequent PR introduces more significant changes that change how
configs are actually handled in more breaking way in attempt to address
various issues, while this one mainly tries to keep current logic
intact.


#### Changes
- Add `PartialCastConfig` with all fields having `None` as `Default`
value.
- Create global, local, cli `PartialCastConfig`. Then combine them (add
`Override` trait for config and it's subcomponents)
- Replace raw string approach to config in
`add_created_profile_to_configuration`

## Checklist

<!-- Make sure all of these are complete -->

- [x] Linked relevant issue
- [ ] Updated relevant documentation
- [ ] Added relevant tests
- [x] Performed self-review of the code
- [ ] Added changes to `CHANGELOG.md`

---------

Co-authored-by: Maksymilian Kowalski <126796018+MKowalski8@users.noreply.github.com>
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