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: Add feature lambdaworks-felt to felt & cairo-vm crates #1281

Merged
merged 135 commits into from Jun 26, 2023

Commits on May 29, 2023

  1. wip

    pefontana committed May 29, 2023
    Configuration menu
    Copy the full SHA
    061064e View commit details
    Browse the repository at this point in the history
  2. Manually implement some common derives

    Also comment `from` impls for primitive numbers and (De)Serialize derives
    MegaRedHand committed May 29, 2023
    Configuration menu
    Copy the full SHA
    cb0ee30 View commit details
    Browse the repository at this point in the history
  3. Implement FromPrimitive

    MegaRedHand committed May 29, 2023
    Configuration menu
    Copy the full SHA
    2d1659e View commit details
    Browse the repository at this point in the history
  4. Implement ToPrimitive

    MegaRedHand committed May 29, 2023
    Configuration menu
    Copy the full SHA
    fbe3676 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9cf6988 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e0f18f4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6747209 View commit details
    Browse the repository at this point in the history
  8. Remove Integer impl

    MegaRedHand committed May 29, 2023
    Configuration menu
    Copy the full SHA
    d653271 View commit details
    Browse the repository at this point in the history
  9. Impl Bounded

    MegaRedHand committed May 29, 2023
    Configuration menu
    Copy the full SHA
    fc0ca5e View commit details
    Browse the repository at this point in the history
  10. Impl from_str_radix

    MegaRedHand committed May 29, 2023
    Configuration menu
    Copy the full SHA
    e164ef5 View commit details
    Browse the repository at this point in the history
  11. Add iter_u64_digits impl

    MegaRedHand committed May 29, 2023
    Configuration menu
    Copy the full SHA
    1a45f45 View commit details
    Browse the repository at this point in the history
  12. Add Add impls

    MegaRedHand committed May 29, 2023
    Configuration menu
    Copy the full SHA
    a74de07 View commit details
    Browse the repository at this point in the history
  13. Add Sub impls

    MegaRedHand committed May 29, 2023
    Configuration menu
    Copy the full SHA
    3a32072 View commit details
    Browse the repository at this point in the history
  14. Patch arbitrary

    MegaRedHand committed May 29, 2023
    Configuration menu
    Copy the full SHA
    2088c18 View commit details
    Browse the repository at this point in the history
  15. Fix some warnings

    MegaRedHand committed May 29, 2023
    Configuration menu
    Copy the full SHA
    0093e6f View commit details
    Browse the repository at this point in the history
  16. Implement parse_bytes

    MegaRedHand committed May 29, 2023
    Configuration menu
    Copy the full SHA
    c2a2c2c View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    bbb1758 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    84dec45 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    4ad7493 View commit details
    Browse the repository at this point in the history
  20. Impl From<BigInt>

    MegaRedHand committed May 29, 2023
    Configuration menu
    Copy the full SHA
    c854aa5 View commit details
    Browse the repository at this point in the history
  21. Re-add bits fn

    MegaRedHand committed May 29, 2023
    Configuration menu
    Copy the full SHA
    a8a8aa5 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2023

  1. Impl Signed

    MegaRedHand committed May 30, 2023
    Configuration menu
    Copy the full SHA
    8228211 View commit details
    Browse the repository at this point in the history
  2. Impl (De)Serialize

    MegaRedHand committed May 30, 2023
    Configuration menu
    Copy the full SHA
    7a44c1a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0f23d8e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c8e51c8 View commit details
    Browse the repository at this point in the history
  5. Reorder impls

    MegaRedHand committed May 30, 2023
    Configuration menu
    Copy the full SHA
    ff3f93e View commit details
    Browse the repository at this point in the history
  6. Fix compile error

    MegaRedHand committed May 30, 2023
    Configuration menu
    Copy the full SHA
    4c38bac View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5185ea8 View commit details
    Browse the repository at this point in the history
  8. Remove to_bytes_be

    MegaRedHand committed May 30, 2023
    Configuration menu
    Copy the full SHA
    b6ad868 View commit details
    Browse the repository at this point in the history
  9. Fix panicky from_bytes_be

    MegaRedHand committed May 30, 2023
    Configuration menu
    Copy the full SHA
    a1e6b74 View commit details
    Browse the repository at this point in the history
  10. Fix is_positive

    MegaRedHand committed May 30, 2023
    Configuration menu
    Copy the full SHA
    ae927b7 View commit details
    Browse the repository at this point in the history
  11. Fix str conversions

    MegaRedHand committed May 30, 2023
    Configuration menu
    Copy the full SHA
    37ef285 View commit details
    Browse the repository at this point in the history
  12. Add documentation

    MegaRedHand committed May 30, 2023
    Configuration menu
    Copy the full SHA
    f49f2f7 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    92f57a8 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    5881d8c View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    a150ac7 View commit details
    Browse the repository at this point in the history
  16. Pin lambdaworks commit

    MegaRedHand committed May 30, 2023
    Configuration menu
    Copy the full SHA
    a5c25ff View commit details
    Browse the repository at this point in the history
  17. Fix keccak

    MegaRedHand committed May 30, 2023
    Configuration menu
    Copy the full SHA
    3978a4a View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    70f28b8 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    37e9a45 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    a2b003e View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    168ba45 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    647345b View commit details
    Browse the repository at this point in the history
  23. Fix nostd error

    MegaRedHand committed May 30, 2023
    Configuration menu
    Copy the full SHA
    ed67ccc View commit details
    Browse the repository at this point in the history

Commits on May 31, 2023

  1. Configuration menu
    Copy the full SHA
    7b6ecfd View commit details
    Browse the repository at this point in the history
  2. Update rust version in CI

    MegaRedHand committed May 31, 2023
    Configuration menu
    Copy the full SHA
    06d206f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0d0c0b2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c2ca57b View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2023

  1. Configuration menu
    Copy the full SHA
    647ff67 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aa15dc5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5b2d505 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c2ee0cf View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4a17dc1 View commit details
    Browse the repository at this point in the history
  6. Update Cargo.lock

    MegaRedHand committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    939ee06 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    175289a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    4667b3e View commit details
    Browse the repository at this point in the history
  9. Revert the change to Shr

    MegaRedHand committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    63d1360 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    5db1ebe View commit details
    Browse the repository at this point in the history
  11. Appease clippy

    MegaRedHand committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    413b813 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    808c803 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2023

  1. Remove FeltBigInt

    MegaRedHand committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    6a8ca26 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f3a7a0d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    987a114 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7dd7d58 View commit details
    Browse the repository at this point in the history
  5. Update commits

    pefontana committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    60b3e37 View commit details
    Browse the repository at this point in the history
  6. Update .md commits

    pefontana committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    906adfd View commit details
    Browse the repository at this point in the history
  7. Looooong benchmark

    Oppen committed Jun 2, 2023
    Configuration menu
    Copy the full SHA
    c2b7f18 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2023

  1. Configuration menu
    Copy the full SHA
    3ec78e4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    96f12a4 View commit details
    Browse the repository at this point in the history
  3. Remove -P option in xargs

    In the measurements we got through `perf`, there were 3 to 4 times more page faults compared to base.
    This can be explained by the runner using swap memory because of the increase in memory usage.
    We can fix it by reducing the amount of processes ran in parallel by xargs (2 -> 1)
    MegaRedHand committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    b64b0ca View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    400effe View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9ba90c3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    03cb2dd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    171520c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0be0200 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2023

  1. Configuration menu
    Copy the full SHA
    11bc48a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0b1a15e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9bec2cf View commit details
    Browse the repository at this point in the history
  4. Optimize assert_le_felt

    (used in math_integration_benchmark)
    
    * Use constant for zero() function
    
    * Extract division by constant
    
    * Use BigUint in assert_le_felt
    
    This part uses comparisons and integer division (that use `to_biguint`), so it's better to use `BigUints` directly.
    MegaRedHand committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    82e5882 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5a366e9 View commit details
    Browse the repository at this point in the history
  6. Update changelog

    MegaRedHand committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    8602139 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2023

  1. Add tests for felt

    MegaRedHand committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    6009eba View commit details
    Browse the repository at this point in the history
  2. Add TODO

    MegaRedHand committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    9411f03 View commit details
    Browse the repository at this point in the history
  3. Add other texts

    MegaRedHand committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    b310376 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    58920da View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bba3a59 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2023

  1. Configuration menu
    Copy the full SHA
    c276737 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4bce996 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fbfa88c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3e67fbb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    026ebce View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    308f580 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6508d21 View commit details
    Browse the repository at this point in the history
  8. Change some uses of get_ref with get_mut_ref

    Using `get_ref` and later updating the variable with an `exec_scopes.insert_value(...)` causes two lookups in a hashmap, along with two creation of `String` from a slice.
    This change reduces it to just a single lookup and `String` creation.
    MegaRedHand committed Jun 8, 2023
    Configuration menu
    Copy the full SHA
    06b0c82 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    37ba2a4 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ed2cd48 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2023

  1. Configuration menu
    Copy the full SHA
    6c00c45 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    073f44c View commit details
    Browse the repository at this point in the history
  3. Add TODO

    MegaRedHand committed Jun 9, 2023
    Configuration menu
    Copy the full SHA
    376c723 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2023

  1. Configuration menu
    Copy the full SHA
    b441d2f View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2023

  1. Configuration menu
    Copy the full SHA
    5926939 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2023

  1. Configuration menu
    Copy the full SHA
    4793edb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6f73dba View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. Configuration menu
    Copy the full SHA
    766a67c View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2023

  1. Configuration menu
    Copy the full SHA
    eeecc8b View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2023

  1. Configuration menu
    Copy the full SHA
    90c48de View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2023

  1. Configuration menu
    Copy the full SHA
    785f5c9 View commit details
    Browse the repository at this point in the history
  2. Include both lib.rs

    fmoletta committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    041da94 View commit details
    Browse the repository at this point in the history
  3. Fix lib_bigint_felt

    fmoletta committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    2dd2be4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dff778f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    dc6ecae View commit details
    Browse the repository at this point in the history
  6. Fix failling example

    fmoletta committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    2ccb08e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    10814cc View commit details
    Browse the repository at this point in the history
  8. Update changelog

    fmoletta committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    ddff68b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b85a6c3 View commit details
    Browse the repository at this point in the history
  10. Fix changelog

    fmoletta committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    cfb15d9 View commit details
    Browse the repository at this point in the history
  11. Fix example

    fmoletta committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    bdb5452 View commit details
    Browse the repository at this point in the history
  12. Remove benchmark docs

    fmoletta committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    59218ab View commit details
    Browse the repository at this point in the history
  13. Remove clone

    fmoletta committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    057d94e View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    4add087 View commit details
    Browse the repository at this point in the history
  15. Fix changelog

    fmoletta committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    f528c5e View commit details
    Browse the repository at this point in the history
  16. Remove blank line in toml

    fmoletta committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    2182ea8 View commit details
    Browse the repository at this point in the history
  17. Use one line cfg directives

    fmoletta committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    4a47e1a View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    bb5c2a2 View commit details
    Browse the repository at this point in the history
  19. Remove reference

    fmoletta committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    ac8cb98 View commit details
    Browse the repository at this point in the history
  20. Restore clone

    fmoletta committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    dd7b797 View commit details
    Browse the repository at this point in the history
  21. Fix doc test

    fmoletta committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    ef6f1a5 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    ed2ed3c View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    779da51 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    6639d81 View commit details
    Browse the repository at this point in the history
  25. Merge branch 'lambdaworks-felt-feature' of github.com:lambdaclass/cai…

    …ro-rs into lambdaworks-felt-feature
    fmoletta committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    c264536 View commit details
    Browse the repository at this point in the history
  26. Move the sections a bit

    MegaRedHand committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    b01bc2b View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    3818bbe View commit details
    Browse the repository at this point in the history
  28. Merge branch 'lambdaworks-felt-feature' of github.com:lambdaclass/cai…

    …ro-rs into lambdaworks-felt-feature
    fmoletta committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    55b73da View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    acc1a36 View commit details
    Browse the repository at this point in the history