Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: v4 #1931

Merged
merged 1,071 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1071 commits
Select commit Hold shift + click to select a range
da74923
cleanup files a bit
jtguibas Dec 19, 2024
c19a8ce
update groth16_vk
0xWOLAND Dec 19, 2024
f6d6b55
Merge branch 'min/eclogup-tracegen' of ssh://github.com/succinctlabs/…
0xWOLAND Dec 19, 2024
4484920
fix shape better algo
jtguibas Dec 19, 2024
b8359b3
Merge branch 'min/eclogup-tracegen' of https://github.com/succinctlab…
jtguibas Dec 19, 2024
d1a9084
shape fix
jtguibas Dec 19, 2024
5aad85e
fix shape matching logic
jtguibas Dec 19, 2024
4e0cad6
fix fix_shape
jtguibas Dec 19, 2024
f15acd4
new vk map
jtguibas Dec 20, 2024
4fe8144
feat: turbo preview (#133)
jtguibas Dec 21, 2024
d90c306
fix: generate bn254 proofs in unit tests. (#160)
yuwen01 Dec 21, 2024
15b9b0f
feat: dev sync (#169)
jtguibas Dec 21, 2024
66915a4
resolve merge conflicts with main
jtguibas Dec 21, 2024
7a6e5a0
update to crates.io p3
jtguibas Dec 21, 2024
f6f172c
update main ci
jtguibas Dec 21, 2024
8c939aa
make suite run on main
jtguibas Dec 21, 2024
86bdcf6
better ci tests for pr to main
jtguibas Dec 21, 2024
dbe164a
resolve merge conflicts
jtguibas Dec 21, 2024
948bf3d
comment out doc building
jtguibas Dec 21, 2024
c945459
don't use native-gnark for fibonacci example
jtguibas Dec 21, 2024
f5d58ff
p3 0.1.6
jtguibas Dec 21, 2024
3d442ce
don't run ci twice
jtguibas Dec 21, 2024
b8d446a
fix: no default features
nhtyy Dec 21, 2024
e4a1420
fix debug backtrace handle in outer circuit
jtguibas Dec 22, 2024
39c2e56
refactor(core): combine add and sub events in `ExecutionRecord` (#163)
tqn Dec 23, 2024
408f3ad
fix(core): improve estimate of `Global` events (#164)
tqn Dec 23, 2024
bd9454d
fix recursion circuit
jtguibas Dec 23, 2024
aa022fb
fri fix + todo cleanup
jtguibas Dec 23, 2024
82ac037
Merge branch 'dev' of https://github.com/succinctlabs/sp1-wip into dev
jtguibas Dec 23, 2024
8c14718
Revert "fix(core): improve estimate of `Global` events (#164)"
jtguibas Dec 23, 2024
3601f7c
Revert "refactor(core): combine add and sub events in `ExecutionRecor…
jtguibas Dec 23, 2024
9d8e800
Merge pull request #173 from succinctlabs/revert-164-tqn/fix-executor…
jtguibas Dec 23, 2024
e1fbd9c
Merge pull request #174 from succinctlabs/revert-163-tqn/combine-add-…
jtguibas Dec 23, 2024
08962cc
point to private p3 branches
jtguibas Dec 23, 2024
6820df1
update suite to work
jtguibas Dec 23, 2024
1f904ad
add git fetch with cli
jtguibas Dec 23, 2024
120d840
pull token
jtguibas Dec 23, 2024
d1959b0
set verify vk to false
jtguibas Dec 23, 2024
a4ed6bd
increase fast shape ext alu to 17
jtguibas Dec 23, 2024
76680e1
shape to ext alu 18
jtguibas Dec 23, 2024
90212d8
update to 18 on shrink
jtguibas Dec 23, 2024
5d7bcdb
ext alu 17
jtguibas Dec 23, 2024
560a30f
ext alu 18
jtguibas Dec 23, 2024
a944a91
ext alu mods
jtguibas Dec 24, 2024
068ec7f
verify vk on
jtguibas Dec 24, 2024
8ee6a82
vk map update
jtguibas Dec 24, 2024
6f742b8
add canonicalness checks and weierstrass_add checks
rkm0959 Dec 24, 2024
04781d0
comment change to trigger ci
jtguibas Dec 24, 2024
b525c72
fix pr ci invocation
jtguibas Dec 24, 2024
020d325
fix pr ci invoke 2
jtguibas Dec 24, 2024
203c5b0
verify vk false
jtguibas Dec 24, 2024
d98ad0f
fix fri test for p3 changes
rkm0959 Dec 24, 2024
b132958
remove fp reduction in witness generation
rkm0959 Dec 24, 2024
3cbf7da
Merge pull request #175 from succinctlabs/min/field-air-changes
jtguibas Dec 24, 2024
b9309bd
Merge pull request #171 from succinctlabs/n/no-default-features
jtguibas Dec 24, 2024
a3e9a49
update verify vk and vk map
jtguibas Dec 25, 2024
1f5a955
new vks
0xWOLAND Dec 25, 2024
f97fdfa
fix fp2 executor result in small result cases
rkm0959 Dec 25, 2024
e4077ff
add comments
rkm0959 Dec 25, 2024
16abb8d
disable batch fri chip in wrap
jtguibas Dec 25, 2024
a4688d0
Merge branch 'dev' of https://github.com/succinctlabs/sp1-wip into dev
jtguibas Dec 25, 2024
32379f1
release cleanup
0xWOLAND Dec 26, 2024
638f4db
update ci actions
jtguibas Dec 26, 2024
bddb337
more pr checks
jtguibas Dec 26, 2024
df0e060
cargo fmt fix
jtguibas Dec 26, 2024
b853cfd
fix some ci stuff
jtguibas Dec 26, 2024
c4a7a8b
update p3 deps
jtguibas Dec 26, 2024
864c7f7
vk map downloader
jtguibas Dec 26, 2024
12c5738
add vk map
jtguibas Dec 26, 2024
8c75d99
remove test cuda
jtguibas Dec 26, 2024
6c207cc
new network suite
jtguibas Dec 26, 2024
89ca1fc
close
jtguibas Dec 26, 2024
8764bdc
hm
jtguibas Dec 26, 2024
360b8b8
fix: hints should write to the front of the input stream
nhtyy Dec 25, 2024
a5c0ddc
Merge pull request #177 from succinctlabs/n/hint-front-rebase
jtguibas Dec 27, 2024
e707827
tweak: pre reserve vecs in postprocess
ctian1 Dec 27, 2024
78e0d11
switch p3 to git
ctian1 Dec 27, 2024
7ccbeab
chore: remove old examples patch testing
nhtyy Dec 21, 2024
7e90e94
test(patch): add all exisiting tests and sp1-test macro
nhtyy Dec 21, 2024
a9cc2f3
chore: fds exported from primmitives crate
nhtyy Dec 22, 2024
338c4e4
fix: dalek hook
nhtyy Dec 22, 2024
fabc31f
feat: ecrecover
nhtyy Dec 22, 2024
9e35f00
fix: rebase fix
nhtyy Dec 25, 2024
988378b
test(patch): add blank test harness for bls, bn, crypto-bigint
nhtyy Dec 22, 2024
53e324d
test: verify proofs in sp1-test macro
nhtyy Dec 24, 2024
e7b583c
bigint mul_mod_special edge case
rkm0959 Dec 24, 2024
db67ebb
add non-canonical test
rkm0959 Dec 24, 2024
d5c571e
fix curve25519-dalek-ng tests, add non-canonical test
rkm0959 Dec 26, 2024
99e9994
cinema
rkm0959 Dec 26, 2024
7cafe5d
add special point decompression, fix (0, 1) decompress
rkm0959 Dec 26, 2024
503043a
more test cases
rkm0959 Dec 26, 2024
ed6714d
change curve25519-dalek to git branch
rkm0959 Dec 26, 2024
18c6d41
fix: delete file
nhtyy Dec 26, 2024
c5ad31c
chore: verify gpu proofs
nhtyy Dec 26, 2024
934f63a
test: parking-lot backed serial gpu prove tests
nhtyy Dec 28, 2024
3edc269
fix: setup requires prover trait
nhtyy Dec 28, 2024
37b8c10
fix: missing assertions in r1 hook
nhtyy Dec 28, 2024
180af8a
chore(patches): introduce minimum file descriptor to deprecate old pa…
nhtyy Dec 28, 2024
59278b4
clippy + fmt
nhtyy Dec 28, 2024
6b4f0fa
fix: secp256k1 lockfile
nhtyy Dec 26, 2024
221575d
add new tests, change Cargo.toml
rkm0959 Dec 27, 2024
7360d6b
fix mul_assign and msm to handle zero scalar correctly
rkm0959 Dec 27, 2024
fb1bf47
p256 tests
rkm0959 Dec 27, 2024
57bb6a3
k256 test first attempt
rkm0959 Dec 27, 2024
922c0ea
tests work for k256
rkm0959 Dec 27, 2024
6a72429
small change to tests
rkm0959 Dec 27, 2024
cb8b7fd
better testing for add-mul
rkm0959 Dec 28, 2024
4566599
patch(dalek): port remaining test cases
nhtyy Dec 29, 2024
c152fa7
cleanup cargo tomls
nhtyy Dec 29, 2024
380451f
dont export fd macro
nhtyy Dec 29, 2024
73afc28
fix: test-artifacts old unwraps on curve points
nhtyy Dec 29, 2024
9eae286
Spell check bot suggestions
nhtyy Dec 29, 2024
bcf1c13
Revert "Spell check bot suggestions"
nhtyy Dec 29, 2024
05a43c2
docs: rc.3 patches
nhtyy Dec 29, 2024
24b0343
Merge pull request #178 from succinctlabs/n/dev-patch-testing-rebase
jtguibas Dec 29, 2024
a87712c
create testing suite gen script
jtguibas Dec 29, 2024
b31433f
v4 perf setup
jtguibas Dec 29, 2024
bee546a
chore: allow deprecated hooks with env var set (#180)
nhtyy Dec 30, 2024
457ef06
chore: make PrecompileEvents.events pub (#181)
ctian1 Dec 30, 2024
ef467ff
fix: old public values and input stream fds (#182)
nhtyy Dec 30, 2024
02f85d9
test: ensure all deps are pointing to tags, update dcos
nhtyy Dec 30, 2024
e5c9237
docs + dalek-ng tag
nhtyy Dec 30, 2024
7678517
fix: dalek lock file
nhtyy Dec 30, 2024
b4433e8
Merge pull request #183 from succinctlabs/n/update-patch-test-lockfiles
jtguibas Dec 30, 2024
117e60a
fix: sp1_dump exit
ctian1 Dec 31, 2024
7918865
chore: cleanup subproof verifier doesnt need an arc
nhtyy Dec 31, 2024
19a1cfb
try out blobstream / vector artifacts
jtguibas Dec 31, 2024
963f4fd
Merge branch 'dev' of https://github.com/succinctlabs/sp1-wip into dev
jtguibas Dec 31, 2024
d813fcd
only enable chess
jtguibas Dec 31, 2024
15e2c9d
disbale suite on pr to main
jtguibas Dec 31, 2024
7a99a8a
fix issue with network private key
jtguibas Dec 31, 2024
cc785e3
update network rpc url
jtguibas Dec 31, 2024
183fbf3
fix: fmt + clippy
nhtyy Dec 31, 2024
e416472
p3 0.2.0-succinct
jtguibas Dec 31, 2024
d2b0e81
cargo fmt fix
jtguibas Dec 31, 2024
903c0b8
spelling tweaks
jtguibas Dec 31, 2024
863f291
use aws ci machines
jtguibas Dec 31, 2024
cb07608
feat: bn patch tests
jtguibas Dec 31, 2024
ed129ac
feat: disable join program cache env var
ctian1 Dec 31, 2024
6e9b859
G1 tests
jtguibas Dec 31, 2024
21976b9
bn tests
jtguibas Dec 31, 2024
96515d6
Merge pull request #186 from succinctlabs/john/bn-tests
jtguibas Dec 31, 2024
cb2b255
invalidate rust cache key
jtguibas Dec 31, 2024
3fd56e7
Merge pull request #185 from succinctlabs/j/final-tweaks
jtguibas Dec 31, 2024
23d8d7e
Merge pull request #176 from succinctlabs/min/fix-fp2-executor
jtguibas Dec 31, 2024
1b6c053
Merge pull request #184 from succinctlabs/n/subproof-verify
jtguibas Dec 31, 2024
9fc911b
tests: bls sqrt coverage
nhtyy Dec 31, 2024
c1f212d
tests: fp inverse, fp2 sqrt & inverse tests
nhtyy Dec 31, 2024
b0b810f
tests: bls add & double coverage
nhtyy Dec 31, 2024
a4db4b0
fix: fmt + clippy
nhtyy Dec 31, 2024
858b434
fix: update lock files + patches
nhtyy Dec 31, 2024
3fae321
fix: pr issues
nhtyy Dec 31, 2024
7221a24
Update patch-testing/sha/src/lib.rs
nhtyy Dec 31, 2024
644566a
Update patch-testing/keccak/src/lib.rs
nhtyy Dec 31, 2024
ac2b977
Update patch-testing/keccak/src/lib.rs
nhtyy Dec 31, 2024
2e82885
feat: bigint patch tests
jtguibas Dec 31, 2024
a30ea5e
Merge pull request #188 from succinctlabs/j/bigint-tests
jtguibas Dec 31, 2024
7e7d84a
resolve merge cofnlicts
jtguibas Dec 31, 2024
a16af20
Merge pull request #187 from succinctlabs/n/bls-tests
jtguibas Dec 31, 2024
982146f
tests: pkcs verify test
nhtyy Dec 31, 2024
ff878d2
feat: bigint patch tests
jtguibas Dec 31, 2024
83c8eeb
temp
nhtyy Jan 3, 2025
1862b02
fix: update bls and bn with final tags
nhtyy Jan 3, 2025
2f23db5
fix: add bigint tests
nhtyy Jan 3, 2025
723810a
fix: add bigint patch
nhtyy Jan 3, 2025
9e1df2a
Merge pull request #192 from succinctlabs/n/final-v4
nhtyy Jan 3, 2025
dbb045f
fix serial tests
nhtyy Jan 3, 2025
27c7170
fix: fmt
nhtyy Jan 3, 2025
e3ff1db
fix: test artifafcts moved to its own crate so we dont have to publis…
nhtyy Jan 3, 2025
1cee777
fix: just dup it rip
nhtyy Jan 3, 2025
70082fa
Merge pull request #193 from succinctlabs/n/test-artifacts-remove
nhtyy Jan 3, 2025
c5202c8
fix: missed test artifacts deps unused
nhtyy Jan 4, 2025
34ff8ca
fix try remove version
nhtyy Jan 4, 2025
0988218
rm export tests
nhtyy Jan 4, 2025
da03377
bn lockfiles
nhtyy Jan 4, 2025
18f2753
fix: link only once to sp1-core-machine-sys, include static files for…
nhtyy Jan 6, 2025
87d2b34
fix: include sp1_version at workspace level
nhtyy Jan 6, 2025
46f19c5
chore: bump rc.4
nhtyy Jan 6, 2025
3b66dd6
chore: bump version file
nhtyy Jan 6, 2025
b1aea48
fix: releaseplz needs lib path now
nhtyy Jan 6, 2025
de18213
more missing stuff
nhtyy Jan 6, 2025
3a33666
fix: dont publish test-artifacts
nhtyy Jan 6, 2025
217b26f
fix: try symlink if ref anything in parent dirs
nhtyy Jan 6, 2025
43bbeca
symlinks
nhtyy Jan 6, 2025
ac1d7a8
chore: rc.4 -> rc.5
nhtyy Jan 6, 2025
2334283
fix: final symlinks needs, rc.6
nhtyy Jan 6, 2025
610d0db
fix: need outdir prefix in path
nhtyy Jan 6, 2025
ef70f4f
bump sp1 version file
nhtyy Jan 6, 2025
5891afc
fix: use rc.3 circuits
nhtyy Jan 6, 2025
257a1c7
fix: final rc bump
nhtyy Jan 6, 2025
fc9396b
fix: relink core-recursion-sys
nhtyy Jan 6, 2025
a97a840
chore: remove sp1-recursion-core from dev-deps of itself
nhtyy Jan 6, 2025
673a668
chore: rc8
nhtyy Jan 6, 2025
c5c803d
chore: docs nits (#195)
ctian1 Jan 7, 2025
bb34652
chore: add docker build override options
ctian1 Jan 7, 2025
d65b6ac
tests: pkcs verify test (#189)
nhtyy Jan 8, 2025
ed59a46
fix: output-dir should be respected (#197)
nhtyy Jan 9, 2025
a0288fd
docs.rs fixes (#198)
ctian1 Jan 9, 2025
10e4200
chore: deprecate cuda feature (#201)
nhtyy Jan 9, 2025
9ce02be
Release safeguards (#200)
nhtyy Jan 9, 2025
adf394c
fix: bump bn to use version with new fds (#202)
nhtyy Jan 9, 2025
766afb7
feat: mock proof from public values (#203)
ratankaliani Jan 9, 2025
a993559
fix(ci): use cfg to ignore some clippy errors in our ci (#205)
nhtyy Jan 9, 2025
fd6609b
chore: bump rc.9 (#206)
nhtyy Jan 9, 2025
8dede07
Merge branch 'min/eclogup-tracegen' into kevjue/failure_tests
kevjue Jan 9, 2025
9fd9f55
merged dev
kevjue Jan 9, 2025
03cecfb
resolved conflicts
kevjue Jan 9, 2025
dc7858d
resolved conflicts
kevjue Jan 9, 2025
9277a9f
removed conflicts
kevjue Jan 9, 2025
afc282f
some fixes
kevjue Jan 9, 2025
2c49eab
fixes
kevjue Jan 9, 2025
cb1c630
feat(sdk): grpc settings + retries (#210)
mattstam Jan 10, 2025
2818859
fix(sdk): Propagate `context` to mock mode (#211)
ratankaliani Jan 11, 2025
2b9a1d1
feat: 1.82 toolchain support (#199)
nhtyy Jan 11, 2025
20119ae
cargo fmt && cargo clippy --fix --allow-dirty (#212)
nhtyy Jan 11, 2025
0d5be31
N/bump rc.10 (#213)
nhtyy Jan 11, 2025
0beba86
resolved conflicts
kevjue Jan 13, 2025
f1cad31
downgraded generic-array
kevjue Jan 13, 2025
8337db1
fixed fmt issue
kevjue Jan 13, 2025
d67d2bb
fixed some formatting error
kevjue Jan 13, 2025
fc3e1f4
fixed spelling
kevjue Jan 13, 2025
14347dc
fixed spelling
kevjue Jan 13, 2025
2cabac0
use generic-array 1.1.1
kevjue Jan 13, 2025
a688fe1
reverted toml file change
kevjue Jan 13, 2025
31bf3ba
Merge pull request #143 from succinctlabs/kevjue/failure_tests
kevjue Jan 13, 2025
ac15d8b
fix: remove try package ci and lock generic array version (#216)
nhtyy Jan 14, 2025
cb33800
fix: correctly detect docs rs in build, remove old ununsed features (…
nhtyy Jan 14, 2025
521d4d1
chore: security documentation (#215)
rkm0959 Jan 14, 2025
51d63be
feat: embedded allocator (#196)
ratankaliani Jan 14, 2025
d1f1b87
book: update network docs and rpc urls (#219)
ctian1 Jan 14, 2025
4a39d8b
feat: add embedded allocator docs (#221)
ratankaliani Jan 14, 2025
209669e
fix: embedded allocator takes precedence (#222)
nhtyy Jan 14, 2025
4881a8e
chore: bump rc.11, explicit failure if toolchain version check exits …
nhtyy Jan 14, 2025
8b9d266
chore: small fixes to security documentation (#223)
rkm0959 Jan 14, 2025
b0f9be9
some more docs cleanup (#224)
jtguibas Jan 14, 2025
0349bf8
update verify_shrink (#225)
rkm0959 Jan 14, 2025
97c9927
feat(network): process proof status (#227)
ratankaliani Jan 14, 2025
5bee823
feat: BLS hooks for some FP ops (#226)
nhtyy Jan 15, 2025
75e496d
chore(sdk): Remove unnecessary exports + function re-ordering (#229)
ratankaliani Jan 15, 2025
8abdd5a
chore: bump docker image
nhtyy Jan 15, 2025
56fa1ce
chore: bump patches
nhtyy Jan 15, 2025
04852c0
fix: workflow docker gnark install toolchain
nhtyy Jan 15, 2025
d00ae41
fix: bump examples patch
nhtyy Jan 15, 2025
ec2b465
fix: clean up install logic
nhtyy Jan 15, 2025
c24c69a
fix: remove ed-consesnus patch
nhtyy Jan 15, 2025
f234243
fix: test mod vis
nhtyy Jan 15, 2025
0cb36b9
fix: examples
nhtyy Jan 15, 2025
df56357
fix: docker ci (#230)
yuwen01 Jan 15, 2025
43b82ce
doc updates
jtguibas Jan 15, 2025
c6ddc2e
chore: book + tracing (#1932)
ratankaliani Jan 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
83 changes: 83 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Google C/C++ Code Style settings
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# Author: Kehan Xue, kehan.xue (at) gmail.com

Language: Cpp
BasedOnStyle: Google
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: None
AlignOperands: Align
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: Never # To avoid conflict, set this "Never" and each "if statement" should include brace when coding
AllowShortLambdasOnASingleLine: Inline
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: None
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: true
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterStruct: false
AfterControlStatement: Never
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakBeforeBinaryOperators: None
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
ColumnLimit: 80
CompactNamespaces: false
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false # Make sure the * or & align on the left
EmptyLineBeforeAccessModifier: LogicalBlock
FixNamespaceComments: true
IncludeBlocks: Preserve
IndentCaseLabels: true
IndentPPDirectives: None
IndentWidth: 2
KeepEmptyLinesAtTheStartOfBlocks: true
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PointerAlignment: Left
ReflowComments: false
# SeparateDefinitionBlocks: Always # Only support since clang-format 14
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: c++11
TabWidth: 4
UseTab: Never
7 changes: 5 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
**/target
**/target/**
Dockerfile*
.dockerignore
.git
.gitignore
examples
tests
sp1up
book
target
assets
audits
.github
56 changes: 56 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG-FORM.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Bug report
description: File a bug report
labels: ["T-bug", "T-needs-triage"]
body:
- type: markdown
attributes:
value: |
Please ensure that the bug has not already been filed in the issue tracker.

Thanks for taking the time to report this bug in SP1!
- type: dropdown
attributes:
label: Component
description: What component is the bug in?
multiple: true
options:
- sp1-sdk
- sp1-zkvm
- cargo prove CLI/sp1up
- Other (please describe)
validations:
required: true
- type: checkboxes
attributes:
label: Have you ensured that all of these are up to date?
options:
- label: SP1 SDK
- label: cargo prove CLI/sp1up
- type: input
attributes:
label: What version of SP1 SDK are you on?
description: Leave empty if not relevant
placeholder: "Add the version from the Cargo.toml file here"
- type: input
attributes:
label: What version of the cargo prove CLI are you on?
description: Leave empty if not relevant
placeholder: "Run cargo prove --version and paste the output here"
- type: dropdown
attributes:
label: Operating System
description: What operating system are you on?
options:
- Windows
- macOS (Intel)
- macOS (Apple Silicon)
- Linux (Arch)
- Linux (Debian)
- Linux (Ubuntu)
- Linux (Other)
- type: textarea
attributes:
label: Describe the bug
description: Please include relevant Rust snippets/CLI commands as well if relevant.
validations:
required: true
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE-FORM.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Feature request
description: Suggest a feature
labels: ["T-feature", "T-needs-triage"]
body:
- type: markdown
attributes:
value: |
Please ensure that the feature has not already been requested in the issue tracker.

Thanks for helping us improve SP1!
- type: dropdown
attributes:
label: Component
description: What component is the feature for?
multiple: true
options:
- sp1-sdk
- sp1-zkvm
- cargo prove CLI/sp1up
- Other (please describe)
validations:
required: true
- type: textarea
attributes:
label: Describe the feature you would like
description: Please also describe what the feature is aiming to solve, if relevant.
validations:
required: true
- type: textarea
attributes:
label: Additional context
description: Add any other context to the feature (like screenshots, resources)
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Support
url: https://t.me/+5q4kfeXaBE1hZjEx
about: This issue tracker is only for bugs and feature requests. Support is available on Telegram!
36 changes: 36 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!--
Thank you for your Pull Request. Please provide a description above and review
the requirements below.

Bug fixes and new features should include tests.

Typos / punctuation / trivial PRs are generally not accepted.

Contributors guide: https://github.com/succinctlabs/sp1/blob/dev/CONTRIBUTING.md

The contributors guide includes instructions for running rustfmt and building the
documentation.
-->

<!-- ** Please select "Allow edits from maintainers" in the PR Options ** -->

## Motivation

<!--
Explain the context and why you're making that change. What is the problem
you're trying to solve? In some cases there is not a problem and this can be
thought of as being the motivation for your change.
-->

## Solution

<!--
Summarize the solution and provide any necessary context needed to understand
the code change.
-->

## PR Checklist

- [ ] Added Tests
- [ ] Added Documentation
- [ ] Breaking changes
16 changes: 14 additions & 2 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Note: this is only compatible with Linux runners.

name: Test setup
inputs:
pull_token:
Expand Down Expand Up @@ -75,7 +77,7 @@ runs:
~/.cargo/git/db/
target/
~/.rustup/
key: rust-1.81.0-${{ hashFiles('**/Cargo.toml') }}
key: rust-1.81.0-${{ hashFiles('**/Cargo.toml') }}-x
restore-keys: rust-1.81.0-

- name: Setup toolchain
Expand All @@ -97,6 +99,16 @@ runs:
else
echo "pkg-config and libssl-dev are already installed."
fi


- name: Echo docker buildx version
shell: bash
run: docker buildx version

- name: Set up Docker
uses: crazy-max/ghaction-setup-docker@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: |
image=public.ecr.aws/vend/moby/buildkit:buildx-stable-1
50 changes: 50 additions & 0 deletions .github/scripts/pkg-checks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/bash

set -x

# Move into the workspace root
pushd "$(git rev-parse --show-toplevel)" || exit 1

# Initialize error flag
error_occurred=0

# Loop over all the packages in the workspace
while IFS= read -r pkg_json; do
echo "pkg_json: $pkg_json"

# Extract fields
publish=$(echo "$pkg_json" | jq -r '.publish // empty')
manifest_path=$(echo "$pkg_json" | jq -r '.manifest_path')

# Skip if the package is marked as not published
if [ -n "$publish" ]; then
echo "Skipping unpublished package at $manifest_path"
continue
fi

echo "Checking $manifest_path"

# Get the package directory
pkg_dir=$(dirname "$manifest_path")
pushd "$pkg_dir" || exit 1

# Capture the stdin/stdout of `cargo package`
package_output=$(cargo package 2>&1)

# Check if cargo package failed
if [ $? -ne 0 ]; then
echo "Error: Packaging failed"
echo "$package_output"

if echo "$package_output" | grep -iq "cargo.lock"; then
echo "SP1: Only Cargo.lock was modified, this is fine."
else
echo "Error not related to Cargo.lock, marking as failed."
exit 1
fi
fi

popd
done < <(cargo metadata --format-version=1 --no-deps | jq -c '.packages[] | {publish: .publish, manifest_path: .manifest_path}')

popd
Loading
Loading