Skip to content

WIP: Rustification: Add NAPI-RS transition-rust-backend with capnp se…#1434

Draft
greenscientist wants to merge 1 commit intochairemobilite:mainfrom
greenscientist:transitionrustbackendjson2capnpproto
Draft

WIP: Rustification: Add NAPI-RS transition-rust-backend with capnp se…#1434
greenscientist wants to merge 1 commit intochairemobilite:mainfrom
greenscientist:transitionrustbackendjson2capnpproto

Conversation

@greenscientist
Copy link
Collaborator

…rialization

@greenscientist greenscientist marked this pull request as draft July 16, 2025 18:38
Copy link
Collaborator

@tahini tahini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je sais que c'est en draft, mais j'ai regardé vite fait c'était quoi cette PR. Finalement, c'est un premier exemple de comment faire faire des choses à Rust par nodejs? Donc éventuellement des calculs de tout genre... Et si on a un point d'entrée pour le faire facilement, ce sera plus simple de décider de passer de nouvelles fonctionnalités à Rust.

"packages/transition-backend",
"packages/transition-frontend"
"packages/transition-frontend",
"packages/transition-rust-backend"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

transition-rust-backend demeure un package nodejs? Aussi, ces packages sont exécutés dans l'ordre, si je comprends bien les dépendences, il faudrait qu'il soit avant chaire-lib-backend ici.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tu veux dire avant transition-backend ?

@@ -0,0 +1,197 @@
# Created by https://www.toptal.com/developers/gitignore/api/node
# Edit at https://www.toptal.com/developers/gitignore?templates=node
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a-t-on beosin d'un fichier .gitignore spécifique pour ce package?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plus clean de garder les trucs rust ici à mon avis

)
try {
if (localFileExisted) {
nativeBinding = require('./transition-rust-backend.linux-arm64-gnu.node')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Où sont/seront tous ces fichiers? Ce sera compilé? ./ ça veut dire que tout se retrouvera dans le root directory du package? Il faudrait idéalement envoyer tous ces fichiers dans un même répertoire de compilation.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tout ca est auto généré par napi-rs, donc je sais pas à quel point on peut modifier le tout. a voir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants