This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a stub Rust crate #12595
Add a stub Rust crate #12595
Changes from all commits
178d866
09bc570
b4f8dcd
e9a887e
6f7d07c
9e50d78
7c6c3fc
fb841d4
7ae6651
d1216ff
d29b599
0ce8a1d
bc119dd
1036994
0c21782
7f3924b
6bf07a5
18f9052
4f868cf
792da37
d268681
88bd752
77088ab
176a3c9
fcf4b4e
a7721b5
2fe560a
bbb13b6
8befab2
73c9af9
58cc839
d84eade
fce0ea8
70d860c
3e72a1c
6564423
d632a40
017176a
2177d3f
1ebd913
1df9d07
fa0c98d
fc02d33
9df5d41
edbc9ea
2f4e01b
c8b9209
7073bee
66e0568
e78aeba
ef1b7e2
fa36b74
6f28d8e
bf3e845
ae3ef4c
171d0b0
5b21216
24deebc
5e44342
1e5056c
673d14d
025953e
fc899fc
334ab75
4aa84fe
bb753a1
571470c
a0673ac
d5af3e5
72ab0c4
717b8b4
3573887
d2796b2
19d0a2a
b39669b
1e04a3c
0577408
03c6fa2
2c17042
60461d4
5da41e6
85e85c2
1ed7322
6a06805
871caa4
11b0ded
68d63b5
93fd366
6283b47
830b061
4785cfe
b8a291e
2b81696
519cc2c
08c464b
f2a8668
48186b3
aa5bb1c
bfeab18
349bb96
bdfec46
54894b5
680681d
40c8f9c
1a275b4
00fcc83
6ff918b
3c19a48
2126cf7
479a595
60bbd62
eddf98e
ac7269d
1b504aa
96c7cdb
c74a7af
20f90b1
d5234f7
3953ab0
19279b4
bff7fb4
22ea18b
70f3ffd
4604d51
646e4b0
ca584b4
86248cf
0359401
1c25715
1818f14
7c5d4ad
f62405a
24360df
e11f2ba
6225fd5
362ab60
74b015e
eae0143
dbdb3b0
435342d
77eada8
702818a
f5b21f3
96b8bb0
54d4a10
bb2a6df
c9acee4
9353e82
e829e94
25cf13f
7f47134
4fe4bc4
5205d05
fb1364d
737a827
f4b582d
4756c35
12378a3
e407242
b401fe1
de3af72
38c1019
d9f3ff5
d39dba2
aa216fc
45864b8
0687d7f
53bbe54
f6f3d4f
c32cc41
0eb1aa7
2a8e23d
88edb96
0b833c2
1c7929d
5eab0cd
62847c5
2cad84d
a4574b7
4925f6f
5a5fb3d
641ed32
1a601fa
fa8f079
bbd3d09
43e38a9
fa57b03
bc8f80a
19c6a5f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should whatever changed here be folded back into the backend-meta repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yup, probably. The change is using
poetry build
rather thanpip build
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. Should we be building the sdist on PRs? (I'm not sure it picks anything hugely important up?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work? Do you need to setup-python or
pip install build
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sigh, good point. Lets test that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Erm, I think you're missing an
actions/checkout
too.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, fixed now!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After toolchain installation, I recommend adding
- uses: Swatinem/rust-cache@v2
as a step, which will take care of caching dependencies.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooooooooooooooooooooooooooooo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we care about ... dylibs? dlls? Whatever those other OS people do :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, probably I guess? Though do we support other OSes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think @clokep is on Mac at least. Perhaps he can comment about what that looks like over there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I'm on macOS (and others who occasionally contribute to Synapse use macOS too) -- are you mostly just hoping I run this and make sure it doesn't break / what other files we might need to ignore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, pretty much
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On macOS this did seem to only generate a
.so
file, but it was under thebuild/
directory. This was when installing an editable install viapip
, so might be OK if you use poetry?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/build/
is ignored separately fwiw, so thats fine.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No corresponding
Cargo.lock
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, good point!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be "the Rust project", the foundation only does trademark, financing and PR stuff, it's not involved with maintenance / suppport or such.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe worth thinking down the line: is there a way that someone who only wants to touch the Python code can short-cut this setup step / requirement of a rust compiler, e.g. by first installing a wheel?
Certainly not a blocker, just a though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no good support for doing that TBH. I think we'd have to have the rust as a separate python package to make that work.