Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

WIP: make this crate a library that includes a binary #490

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wgwoods
Copy link
Contributor

@wgwoods wgwoods commented Sep 13, 2021

We want to allow other code (like a client/server) to use
enarx_keepldr as a library to build keeps, rather than having to
exec() the enarx-keepldr binary.

This commit refactors the crate to be a library - with an included
enarx-keepldr binary, built from src/bin/enarx-keepldr.rs.

This is a work-in-progress - the documentation on the enarx_keepldr
library is incomplete. There are some half-assed placeholder doc
comments here and there, but in order to get this to compile (so I can
make sure everything still works as expected) I've temporarily turned on
the #[allow(missing_docs)] directive.

Signed-off-by: Will Woods [email protected]

We want to allow other code (like a client/server) to use
`enarx_keepldr` as a library to build keeps, rather than having to
`exec()` the `enarx-keepldr` binary.

This commit refactors the crate to be a library - with an included
`enarx-keepldr` binary, built from `src/bin/enarx-keepldr.rs`.

This is a work-in-progress - the documentation on the `enarx_keepldr`
library is incomplete. There are some half-assed placeholder doc
comments here and there, but in order to get this to compile (so I can
make sure everything still works as expected) I've temporarily turned on
the #[allow(missing_docs)] directive.

Signed-off-by: Will Woods <[email protected]>
@wgwoods wgwoods changed the title WIP: make this crate library that includes a binary WIP: make this crate a library that includes a binary Sep 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants