Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to 2021 #405

Merged
merged 8 commits into from
Nov 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.55.0, 1.54.0]
rust: [1.56.1]
dirs: ${{ fromJSON(needs.changes.outputs.dirs) }}
steps:
- uses: actions/checkout@v2
Expand All @@ -51,7 +51,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.55.0, 1.54.0]
rust: [1.56.1]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.55.0, 1.54.0]
rust: [1.56.1]
steps:
- uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ For other platforms, please use [Vagrantfile](#setting-up-vagrant) that we prepa

## Requires

- Rust(See [here](https://www.rust-lang.org/tools/install))
- Rust(See [here](https://www.rust-lang.org/tools/install)), edition 2021
- Docker(See [here](https://docs.docker.com/engine/install))

## Dependencies
Expand Down
2 changes: 1 addition & 1 deletion crates/integration_test/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "integration_test"
version = "0.1.0"
edition = "2018"
edition = "2021"

[dependencies.clap]
version = "=3.0.0-beta.5"
Expand Down
2 changes: 1 addition & 1 deletion crates/libcgroups/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "libcgroups"
version = "0.1.0"
edition = "2018"
edition = "2021"
autoexamples = false

[features]
Expand Down
2 changes: 1 addition & 1 deletion crates/libcontainer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "libcontainer"
version = "0.0.1"
authors = ["youki team"]
edition = "2018"
edition = "2021"
description = "Library for container creation"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion crates/libcontainer/src/rootless.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub struct Rootless<'a> {
/// Mappings for group ids
pub(crate) gid_mappings: Option<&'a Vec<LinuxIdMapping>>,
/// Info on the user namespaces
pub(crate) user_namespace: Option<LinuxNamespace>,
pub user_namespace: Option<LinuxNamespace>,
/// Is rootless container requested by a privileged user
pub privileged: bool,
}
Expand Down
2 changes: 1 addition & 1 deletion crates/libseccomp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "libseccomp"
version = "0.1.0"
edition = "2018"
edition = "2021"

build = "build.rs"

Expand Down
2 changes: 1 addition & 1 deletion crates/test_framework/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "test_framework"
version = "0.1.0"
edition = "2018"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion crates/youki/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "youki"
version = "0.0.1"
authors = ["youki team"]
edition = "2018"
edition = "2021"
description = "A container runtime written in Rust"

[dependencies.clap]
Expand Down
2 changes: 1 addition & 1 deletion docs/doc-draft.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ D ->> U : exit $code

On invoking Youki, main function parses args passed to it, which contains directory path to store container state (check runc . 8 . md in [runc man pages]), optional log path and log format string and a subcommand such as create, delete etc.

From there it matches subcommand arg with possible subcommand and takes appropriate actions, such as creating a new container, deleting a container erc.
From there it matches subcommand arg with possible subcommand and takes appropriate actions, such as creating a new container, deleting a container, etc.

### create container

Expand Down