anthropics / anthropics/buffa

Allow passing descriptor_set as bytes instead of a file path

オープン
#407 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
883
フォーク
88
平均マージ
3日 19時間
マージ済み PR(30日)
42

説明

Currently, buffa-build allows passing a descriptor_set to use instead of proto files

https://github.com/anthropics/buffa/blob/ccc9adddb51274a45a0155d40514137504904140/buffa-build/src/lib.rs#L1640

This is then just read into bytes

https://github.com/anthropics/buffa/blob/ccc9adddb51274a45a0155d40514137504904140/buffa-build/src/lib.rs#L1772

It would be great if bytes could be passed directly for when the build script can prepare them, for example using protox. Perhaps changing `Precompiled` to hold a `Vec` and have the parameter accept either a sealed trait that is implemented for both `Path` and `&[u8]`, or if breaking is ok, just accept the slice only since reading a path (as buffa-build currently does) wouldn't be that hard for a user.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。