Skip to content

Commit

Permalink
🎨 reformat
Browse files Browse the repository at this point in the history
Signed-off-by: David Bernard <[email protected]>
  • Loading branch information
davidB committed Jan 18, 2024
1 parent 246117a commit 36f9f26
Show file tree
Hide file tree
Showing 45 changed files with 171 additions and 87 deletions.
86 changes: 43 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
# Rust CDEvents SDK

Rust SDK to emit [CDEvents](https://cdevents.dev).

The SDK can be used to create CDEvents and send them as CloudEvents, as well as parse a received CloudEvent into a CDEvent.

## Get started

```rust
WIP
```

## Create your first CDEvent

To create a CDEvent, for instance a [*pipelineRun queued*](https://cdevents.dev/docs/core/#pipelinerun-queued) one:

```rust
WIP
```

## Send your first CDEvent as CloudEvent

Import the modules in your code

```rust
WIP
```

To send a CDEvent as CloudEvent:

```rust
WIP
```

See the [CloudEvents](https://github.com/cloudevents/sdk-go#send-your-first-cloudevent) docs as well.

## Contributing

If you would like to contribute, see our [development](DEVELOPMENT.md) guide.

## References

- [CDEvents](https://cdevents.dev)
# Rust CDEvents SDK

Rust SDK to emit [CDEvents](https://cdevents.dev).

The SDK can be used to create CDEvents and send them as CloudEvents, as well as parse a received CloudEvent into a CDEvent.

## Get started

```rust
WIP
```

## Create your first CDEvent

To create a CDEvent, for instance a [*pipelineRun queued*](https://cdevents.dev/docs/core/#pipelinerun-queued) one:

```rust
WIP
```

## Send your first CDEvent as CloudEvent

Import the modules in your code

```rust
WIP
```

To send a CDEvent as CloudEvent:

```rust
WIP
```

See the [CloudEvents](https://github.com/cloudevents/sdk-go#send-your-first-cloudevent) docs as well.

## Contributing

If you would like to contribute, see our [development](DEVELOPMENT.md) guide.

## References

- [CDEvents](https://cdevents.dev)
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/artifact_packaged.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/artifact_published.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/artifact_signed.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/branch_created.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/branch_deleted.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/build_finished.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/build_queued.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/build_started.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/change_abandoned.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/change_created.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/change_merged.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/change_reviewed.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/change_updated.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/environment_created.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/environment_deleted.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/environment_modified.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/incident_detected.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/incident_reported.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/incident_resolved.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
3 changes: 2 additions & 1 deletion cdevents-sdk/src/generated/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// code generated by cdevents/sdk-rust/generator (mod.hbs)
// @generated
// by cdevents/sdk-rust/generator (mod.hbs)

use serde::de::Error;

Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/pipelinerun_finished.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/pipelinerun_queued.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/pipelinerun_started.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/repository_created.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/repository_deleted.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/repository_modified.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/service_deployed.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/service_published.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/service_removed.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/service_rolledback.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/service_upgraded.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/taskrun_finished.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/taskrun_started.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/testcaserun_finished.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/testcaserun_queued.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/testcaserun_started.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/testoutput_published.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/testsuiterun_finished.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
4 changes: 3 additions & 1 deletion cdevents-sdk/src/generated/testsuiterun_queued.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// code generated by cdevents/sdk-rust/generator (subject.hbs)
// @generated
// by cdevents/sdk-rust/generator (subject.hbs)

use serde::{Serialize, Deserialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
Loading

0 comments on commit 36f9f26

Please sign in to comment.