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

Wasm Feature Branch #959

Draft
wants to merge 108 commits into
base: main
Choose a base branch
from
Draft

Wasm Feature Branch #959

wants to merge 108 commits into from

Commits on Aug 14, 2024

  1. bare minimum wasm sqlite backend (#905)

    Functions Ported
    
    Co-authored-by: Ry Racherbaumer <ry@xmtp.com>
    insipx and rygine authored Aug 14, 2024
    Configuration menu
    Copy the full SHA
    68e71a8 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2024

  1. Statement Stream for AsyncConnection::Load (#961)

    * statement stream
    
    * fix lifetimes on load query
    
    * execute returning count
    
    * transaction manager
    
    * cleanup
    insipx authored Aug 15, 2024
    Configuration menu
    Copy the full SHA
    d7e509c View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2024

  1. Insertion ORM w/ prepared statements works (#966)

    * fix diesel function registration
    
    * query building works
    
    * try insert with orml
    
    * compile with sqlite default fix
    
    * compile but still ahve static lifetimes
    
    * fix unimplemented traits
    
    * ORM compiles!
    
    * some cleanup, setup tracing in wasm for test
    
    * readme
    
    * upgrade wa-sqlite version
    
    * temp DebugQuery to help with debugging
    
    * make debug query unsafe
    
    * progress on statement issue
    
    * progress for destructor order
    
    * logs/fix async drop for BoundStatement
    
    * remove task spawn for statementfactory
    insipx authored Aug 22, 2024
    Configuration menu
    Copy the full SHA
    6a636ce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    87dd959 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2024

  1. Use sqlite.org/sqlite, revert to sync api (#988)

    * use official sqlite bindings
    
    * PORTED
    
    * can establish conn
    
    * getters/setters
    
    * constant from JS workaround
    
    * r2d2 connection
    
    * add custom allocator for faster memory
    
    * memory optimization, tests
    
    * clean up dependencies
    
    * clean
    
    * workflow
    
    * readme
    
    * dep pruning
    
    * readme change
    
    * readme
    insipx authored Aug 26, 2024
    Configuration menu
    Copy the full SHA
    f1274c0 View commit details
    Browse the repository at this point in the history
  2. fix branch in readme

    insipx committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    44a8839 View commit details
    Browse the repository at this point in the history
  3. Organize wasm tests (#995)

    * organize wasm tests so they all run
    
    * make test organization much better, fix tests
    
    * fix workflow file
    insipx committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    d43b891 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. add metadata for crates

    remove rollup plugin typescript
    
    organize JS into one folder
    insipx committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    bb18b61 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

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

Commits on Sep 1, 2024

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

Commits on Sep 3, 2024

  1. returning clauses for sqlite

    insipx committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    a33d4b8 View commit details
    Browse the repository at this point in the history
  2. use xmtp diesel

    insipx committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    3f4f2f5 View commit details
    Browse the repository at this point in the history
  3. fix insert and ignore

    insipx committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    c12ae27 View commit details
    Browse the repository at this point in the history
  4. fix bind blob

    insipx committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    f2d0208 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7b2e353 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. UpdateAndFetchResults

    insipx committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    0d64420 View commit details
    Browse the repository at this point in the history
  2. remove unused

    insipx committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    cf71940 View commit details
    Browse the repository at this point in the history
  3. Last few backend impls (#1030)

    * fix bind blob
    
    * try to repro last compiler error
    
    * UpdateAndFetchResults
    
    * remove unused
    
    * workaround for insert_with_default
    
    * clippy
    insipx authored Sep 4, 2024
    Configuration menu
    Copy the full SHA
    bb8536b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    05ab48f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9f4ffe4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9f5b365 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2024

  1. compile xmtp_id and xmtp_mls to wasm32 (#1026)

    * compile xmtp_id and xmtp_mls to wasm32
    
    * remove `native` features
    
    * remove unsafe & dup trait
    
    * annotate all tests with wasm-bindgen-test for wasm32
    
    * xmtp_mls tests compile for wasm32
    
    * dont create a new file for database in wasm32
    
    * fix compile for bindings_wasm
    
    * pin to wasm-bindgen 0.2.92
    
    * fix wasm-bindgen-test version
    insipx authored Sep 5, 2024
    Configuration menu
    Copy the full SHA
    acbe841 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2024

  1. Configuration menu
    Copy the full SHA
    7c0e18d View commit details
    Browse the repository at this point in the history
  2. dont use mem::swap

    insipx committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    23393e3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    724f72d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4854f7a View commit details
    Browse the repository at this point in the history
  5. async fn in trait works well

    insipx committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    82c45f4 View commit details
    Browse the repository at this point in the history
  6. fix http

    insipx committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    cb10a09 View commit details
    Browse the repository at this point in the history
  7. fix wasm

    insipx committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    c01938b View commit details
    Browse the repository at this point in the history
  8. more tests passing

    insipx committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    2609d0b View commit details
    Browse the repository at this point in the history
  9. fix build

    insipx committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    13346e5 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. Configuration menu
    Copy the full SHA
    fe6a665 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6099976 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a3068ec View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    acc8798 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8da66b9 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2024

  1. Configuration menu
    Copy the full SHA
    86c1b01 View commit details
    Browse the repository at this point in the history
  2. wip

    codabrink committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    1c991ee View commit details
    Browse the repository at this point in the history
  3. prettier

    codabrink committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    6fa253a View commit details
    Browse the repository at this point in the history
  4. passing tests

    codabrink committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    c7f4b0a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4541a21 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. cleanup

    codabrink committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    b2403e5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a11e186 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f1e85c4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    65eb1bd View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. Dont use r2d2 for WebAssembly (#1065)

    * create interface for native/wasm EncryptedMessageStore
    * create interface for spawning tasks onto the global executor in native/wasm
    * fix some bugs with diesel backend
    insipx authored Sep 20, 2024
    Configuration menu
    Copy the full SHA
    9a5cd7a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    baf3988 View commit details
    Browse the repository at this point in the history
  3. fix bindings_wasm build

    insipx committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    9987ac7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4c44607 View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. wasm debug WIP

    insipx committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    49444aa View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2024

  1. init tracing for wasm

    insipx committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    fc28a48 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. fix tests

    insipx committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    bed2c81 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    895baf9 View commit details
    Browse the repository at this point in the history
  3. fix bindings_ffi build

    insipx committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    7adbb97 View commit details
    Browse the repository at this point in the history
  4. fmt

    insipx committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    9f4e45f View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2024

  1. Fix WASM tests (138/151) (#1100)

    * make bindings_wasm a part of the workspace
    
    * fmt
    
    * fix test_add_missing_installations
    
    * handle allocations of length 0 in webassembly
    insipx authored Oct 2, 2024
    Configuration menu
    Copy the full SHA
    895ec4a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    75725b3 View commit details
    Browse the repository at this point in the history
  3. remove wasm-backend workflow

    insipx committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    34770d4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dc3272a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6c72046 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7a9631d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a6d5f41 View commit details
    Browse the repository at this point in the history
  8. fix workflows

    insipx committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    dc1234f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    3ea0935 View commit details
    Browse the repository at this point in the history
  10. try incremenental

    insipx committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    de1e214 View commit details
    Browse the repository at this point in the history
  11. incremental

    insipx committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    11e0166 View commit details
    Browse the repository at this point in the history
  12. ci

    insipx committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    ed66e03 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. fix incremental +_ profiles

    insipx committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    843dab5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    98a41ad View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    863c473 View commit details
    Browse the repository at this point in the history
  4. add some documentation

    insipx committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    ab48d35 View commit details
    Browse the repository at this point in the history
  5. remove doc hidden

    insipx committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    bea4c5b View commit details
    Browse the repository at this point in the history
  6. add CI workflow for wasm

    insipx committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    c618349 View commit details
    Browse the repository at this point in the history
  7. fix ci path

    insipx committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    0fd5515 View commit details
    Browse the repository at this point in the history
  8. headless

    insipx committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    4d50702 View commit details
    Browse the repository at this point in the history
  9. docker containers

    insipx committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    0131ebe View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2024

  1. enable wasm module for wasm32

    insipx committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    a6a37c3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e336e64 View commit details
    Browse the repository at this point in the history
  3. CI

    insipx committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    00d1bca View commit details
    Browse the repository at this point in the history
  4. dont use macos runner

    insipx committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    0a3967d View commit details
    Browse the repository at this point in the history
  5. fix action

    insipx committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    fc1ea68 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    012b5ec View commit details
    Browse the repository at this point in the history
  7. cannot use env vars like that

    insipx committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    f53b00a View commit details
    Browse the repository at this point in the history
  8. use bin name

    insipx committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    3c2af0e View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2024

  1. Configuration menu
    Copy the full SHA
    a9d086e View commit details
    Browse the repository at this point in the history
  2. Update WASM bindings (#1122)

    * Update VSCode workspace settings
    
    * Add WASM bindings
    
    * Clippy fixes
    
    * Use tokio Mutex
    rygine authored Oct 7, 2024
    Configuration menu
    Copy the full SHA
    abdd3de View commit details
    Browse the repository at this point in the history
  3. use nextest instead of build

    insipx committed Oct 7, 2024
    Configuration menu
    Copy the full SHA
    5cb49dd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8ceabc1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    180b3dd View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2024

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

Commits on Oct 9, 2024

  1. some kind of progress

    insipx committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    3053006 View commit details
    Browse the repository at this point in the history
  2. tentative compilation WIP

    insipx committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    7278c7c View commit details
    Browse the repository at this point in the history
  3. WIP

    insipx committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    3c1d04b View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2024

  1. compiler bug

    insipx committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    27a3346 View commit details
    Browse the repository at this point in the history
  2. WIP, before removing static

    insipx committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    ed096d6 View commit details
    Browse the repository at this point in the history
  3. remove some 'static

    insipx committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    aef1c6e View commit details
    Browse the repository at this point in the history
  4. wasm compile

    insipx committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    68685f0 View commit details
    Browse the repository at this point in the history
  5. compiles

    insipx committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    5d882b6 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

  1. all works

    insipx committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    a050107 View commit details
    Browse the repository at this point in the history
  2. fix bindings_ffi

    insipx committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    e9a75e9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5d0c3ee View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a79c0ad View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2f84268 View commit details
    Browse the repository at this point in the history
  6. fix diesel patch

    insipx committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    02a42fe View commit details
    Browse the repository at this point in the history
  7. fix message history test

    insipx committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    16487da View commit details
    Browse the repository at this point in the history
  8. remove patch

    insipx committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    033f31f View commit details
    Browse the repository at this point in the history
  9. fix ci

    insipx committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    fce85c0 View commit details
    Browse the repository at this point in the history
  10. update diesel-wasm-sqlite

    insipx committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    3242eb7 View commit details
    Browse the repository at this point in the history