Skip to content
This repository has been archived by the owner on Sep 4, 2022. It is now read-only.

Use SQLite for persistence (and Rust for handling the SQL) #12

Merged
merged 24 commits into from
Jun 21, 2022
Merged

Conversation

arvid220u
Copy link
Member

@arvid220u arvid220u commented Jun 15, 2022

@arvid220u arvid220u changed the title Rust exploration! Use SQLite for persistence (and Rust for handling the SQL) Jun 21, 2022
@arvid220u arvid220u requested a review from sualehasif June 21, 2022 03:02
@arvid220u arvid220u merged commit 5b31528 into main Jun 21, 2022
@arvid220u arvid220u deleted the rust branch June 21, 2022 18:58
Tom-CCS added a commit that referenced this pull request Aug 2, 2022
* bazel fixes (#13)

* bazel fixes

* fix duplication

* The Trunk and new server PR (#14)

* make trunk available on all repos

* make cron run on all days

* Use SQLite for persistence (and Rust for handling the SQL) (#12)

* rust

* make diesel build

* make diesel build

* install cxx

* rust calls cpp!!!

* add cxx.path to allow Queryable in the ffi

* add db schema

* build outside client

* some fixes

* add cxx.patch

* upd cxx.patch

* more fixes

* IT COMPILES

* add diesel-cli

* implements friend address and random friends

* implement more daemon rpc methods!!

* implement getmessages

* compiles again!!

* updated deps. Add clap to rust for CLI

* everything is done!!!!

* updated deps. remove clap

* TEST 1 WORKED

* remove dev lock

Co-authored-by: Sualeh Asif <[email protected]>

* update bazel version

* Add profiler (#15)

* build formatters

* update asphr-load-2

* update with airbnb version of rules_foreign_cc

* update where rules is called

* reset where the toolchains are

* reorder commands

* remove airbnb shit

* perf works atleast

* remove airbnb

* trunk fmt

Co-authored-by: Sualeh Asif <[email protected]>
Co-authored-by: Ubuntu <[email protected]>

* circles are a new component (#17)

* temporarily remove buildbuddy because wifi is slow

* Friends! (#20)

* rewrite crypto in the new protocol

* redesign daemon schema

* fix typo

* add story to sync friend request

* add story to public id response

* Public identifier (#18)

* add identifier.proto

* implement base58

* implement identifier

* Implement friend acking (#21)

* update message.proto with control message

* handle control message properly

* check for ack of control message

* Async friending schema (#22)

* configure server for async requests

* checkpoint: rewriting test files

* add friend workinggit ca add

Co-authored-by: Shengtong Zhang <[email protected]>

* change api

* add sync test

* push without compile

* use enums instead of integer constants

* daemon.protoo changes

* async partitions and a basic test passes

* update proto. time for disaster to happen. Gooddddd luck

* update protos. We are good.

* update protos for Invitation Progres

* replace friend_request -> invitation on server

* Friends implementation (#23)

* change to system message

* it builds

* initial tests passing!!!

* revamp crypto

* fmt all

* add license notices

* more format fixes

* add asyncinvitation proto and additional check

* it compiles

Co-authored-by: Shengtong Zhang <[email protected]>
Co-authored-by: Sualeh Asif <[email protected]>
Co-authored-by: Sualeh Asif <[email protected]>

* Add friend UI different (#25)

* rewrite crypto in the new protocol

* redesign daemon schema

* fix typo

* add story to sync friend request

* add story to public id response

* Public identifier (#18)

* add identifier.proto

* implement base58

* implement identifier

* Implement friend acking (#21)

* update message.proto with control message

* handle control message properly

* check for ack of control message

* Async friending schema (#22)

* configure server for async requests

* checkpoint: rewriting test files

* add friend workinggit ca add

Co-authored-by: Shengtong Zhang <[email protected]>

* change api

* add sync test

* push without compile

* use enums instead of integer constants

* daemon.protoo changes

* async partitions and a basic test passes

* update proto. time for disaster to happen. Gooddddd luck

* update protos. We are good.

* update protos for Invitation Progres

* replace friend_request -> invitation on server

* Friends implementation (#23)

* change to system message

* it builds

* initial tests passing!!!

* revamp crypto

* update a TON of dependencies to latest commits.

* update daemon_pb.js

* rules_proto_grpc doesnt build off master??

* fix things

* fix trunk fmt

Co-authored-by: Shengtong Zhang <[email protected]>
Co-authored-by: Sualeh Asif <[email protected]>
Co-authored-by: Sualeh Asif <[email protected]>

* Broadcasting messages (#26)

* broadcasting schema

* schema updates. next to fix tests

* now, we have all the tests translated. \n Now, to write the C++ protobuf translation thing.

* fix a lot of things (but more things left to do)

* tests pass!

* trunk fmt

* remove comment

Co-authored-by: Sualeh Asif <[email protected]>

* update strategy doc

* Revert "update strategy doc"

This reverts commit ca4adae.

* Async Invitations UI (#27)

* add async test

* add isvalidpublicid

* trunk fmt

* adding some fixes to the invitations. (#28)

* Fix the PIR potential attacks (#29)

* attacker tests

* fix the randomness

* finish index rotation

* fix all problems.

Co-authored-by: Shengtong Zhang <[email protected]>
Co-authored-by: Shengtong Zhang <[email protected]>
Co-authored-by: Sualeh Asif <[email protected]>

Co-authored-by: Sualeh Asif <[email protected]>
Co-authored-by: Arvid Lunnemark <[email protected]>
Co-authored-by: Ubuntu <[email protected]>
Co-authored-by: Shengtong Zhang <[email protected]>
Co-authored-by: Sualeh Asif <[email protected]>
Co-authored-by: Shengtong Zhang <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant