This repository was archived by the owner on Jun 8, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +2
-18
lines changed
Expand file tree Collapse file tree 3 files changed +2
-18
lines changed Original file line number Diff line number Diff line change 2222[package ]
2323name = " analytics-rs"
2424description = " 🐻❄️🐾 Rust client and server implementation of the Noelware Analytics Protocol"
25- version = " 1.0.0 "
25+ version = " 1.0.1 "
2626homepage = " https://analytics.noelware.org"
2727edition = " 2021"
2828authors = [" Noel Miko <cutie@floofy.dev>" , " Noelware Team <team@noelware.org>" ]
Original file line number Diff line number Diff line change 1919// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2020// SOFTWARE.
2121
22- use std:: { error:: Error , ffi:: OsStr , process:: Command } ;
23-
24- fn execute < T > ( command : T , args : & [ & str ] ) -> Result < String , Box < dyn Error + ' static > >
25- where
26- T : Into < String > + AsRef < OsStr > ,
27- {
28- let res = Command :: new ( command) . args ( args) . output ( ) ?;
29- Ok ( String :: from_utf8 ( res. stdout ) ?)
30- }
22+ use std:: error:: Error ;
3123
3224fn main ( ) -> Result < ( ) , Box < dyn Error > > {
3325 println ! ( "cargo:rerun-if-changed=build.rs" ) ;
3426
35- let binding = execute ( "git" , & [ "submodule" ] ) ?;
36- let binding = binding. split ( ' ' ) . collect :: < Vec < _ > > ( ) ;
37- let protobufs_commit = binding. get ( 1 ) . unwrap ( ) ;
38-
39- println ! ( "cargo:rustc-env=PROTOBUFS_COMMIT_HASH={protobufs_commit}" ) ;
40-
4127 tonic_build:: compile_protos ( "./vendor/protobufs/connection.proto" ) ?;
4228 Ok ( ( ) )
4329}
Original file line number Diff line number Diff line change 1919// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2020// SOFTWARE.
2121
22- pub const PROTOBUFS_COMMIT_HASH : & str = env ! ( "PROTOBUFS_COMMIT_HASH" ) ;
23-
2422mod pb {
2523 include ! ( concat!(
2624 env!( "OUT_DIR" ) ,
You can’t perform that action at this time.
0 commit comments