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
F3504626: D4893.diff
Fri, Dec 20, 9:45 AM
Unknown Object (File)
Mon, Dec 16, 10:12 AM
Unknown Object (File)
Sun, Dec 15, 10:39 PM
Unknown Object (File)
Sun, Dec 15, 10:39 PM
Unknown Object (File)
Sun, Dec 15, 11:01 AM
Unknown Object (File)
Sun, Dec 15, 9:11 AM
Unknown Object (File)
Sun, Dec 15, 9:11 AM
Unknown Object (File)
Sun, Dec 15, 9:10 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
Branch
add-fcm-crate
Lint
No Lint Coverage
Unit
No Test Coverage

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!