Page MenuHomePhabricator

[services] Tunnelbroker - Add FCM crate to Cargo dependencies
ClosedPublic

Authored by max on Aug 22 2022, 4:19 AM.
Tags
None
Referenced Files
F2128736: D4893.id15837.diff
Thu, Jun 27, 11:17 AM
F2124749: D4893.id15806.diff
Wed, Jun 26, 10:22 PM
Unknown Object (File)
Wed, Jun 26, 5:52 PM
Unknown Object (File)
Wed, Jun 26, 5:09 AM
Unknown Object (File)
Fri, Jun 21, 5:11 AM
Unknown Object (File)
Sat, Jun 15, 1:45 PM
Unknown Object (File)
Fri, Jun 14, 6:14 PM
Unknown Object (File)
Thu, Jun 13, 11:45 AM

Details

Summary

This diff adds dependencies to the Rust Cargo manifest file for the notifications library wrapper:

  • FCM - FCM client library.

The Cargo.lock file is added to lock versions.

Linear task: ENG-1330

Test Plan

Run cargo build from the services/tunnelbroker/rust-notifications directory.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

max held this revision as a draft.
max published this revision for review.Aug 22 2022, 5:02 AM
max edited the summary of this revision. (Show Details)
max edited the test plan for this revision. (Show Details)
max added reviewers: karol, varun, jon, tomek.
max retitled this revision from [services] Tunnelbroker - Add fcm crate to Cargo dependencies to [services] Tunnelbroker - Add FCM crate to Cargo dependencies.
max edited the summary of this revision. (Show Details)
tomek added a reviewer: ashoat.
This revision is now accepted and ready to land.Aug 22 2022, 2:41 PM

Did we make sure the library's license doesn't have a copyleft?

Did we make sure the library's license doesn't have a copyleft?

Noticed that questions about dependency licenses have come up a few times.

It looks like it could be possible to automate some of this with various tools we could add to CI.

EG for NPM: https://www.npmjs.com/package/license-checker
For Rust: https://github.com/onur/cargo-license, https://embarkstudios.github.io/cargo-deny/checks/licenses/index.html

This probably wouldn't guarantee anything, but might be a good first pass to eliminate dependencies with licenses we know for certain we want to avoid.

It's MIT https://crates.io/crates/fcm, but we should probably set up a check.

Did we make sure the library's license doesn't have a copyleft?

It's MIT https://crates.io/crates/fcm, but we should probably set up a check.

Yes, seems we are ok with it.

It looks like it could be possible to automate some of this with various tools we could add to CI.
For Rust: https://github.com/onur/cargo-license, https://embarkstudios.github.io/cargo-deny/checks/licenses/index.html

That would be a good idea!