Skip to content

Commit

Permalink
feat: Implement Envelope::from_path and Envelope::from_slice (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek committed Jun 17, 2022
1 parent 9450540 commit 992ae58
Show file tree
Hide file tree
Showing 3 changed files with 436 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
@@ -1,13 +1,17 @@
# Changelog

## 0.27.0
## Unreleased

**Breaking Changes**:

- The minium supported Rust version was bumped to **1.57.0** due to requirements from dependencies. ([#472](https://github.com/getsentry/sentry-rust/pull/472))
- Add the `rust-version` field to the manifest. ([#473](https://github.com/getsentry/sentry-rust/pull/473))
- Update to edition 2021. ([#473](https://github.com/getsentry/sentry-rust/pull/473))

**Features**:

- feat: Implement `Envelope::from_path` and `Envelope::from_slice`. ([#456](https://github.com/getsentry/sentry-rust/pull/456))

## 0.26.0

**Breaking Changes**:
Expand Down
9 changes: 8 additions & 1 deletion sentry-types/src/protocol/attachment.rs
@@ -1,20 +1,27 @@
use std::fmt;

use serde::Deserialize;

/// The different types an attachment can have.
#[derive(Debug, Copy, Clone, PartialEq)]
#[derive(Debug, Copy, Clone, Eq, PartialEq, Deserialize)]
pub enum AttachmentType {
#[serde(rename = "event.attachment")]
/// (default) A standard attachment without special meaning.
Attachment,
/// A minidump file that creates an error event and is symbolicated. The
/// file should start with the `MDMP` magic bytes.
#[serde(rename = "event.minidump")]
Minidump,
/// An Apple crash report file that creates an error event and is symbolicated.
#[serde(rename = "event.applecrashreport")]
AppleCrashReport,
/// An XML file containing UE4 crash meta data. During event ingestion,
/// event contexts and extra fields are extracted from this file.
#[serde(rename = "unreal.context")]
UnrealContext,
/// A plain-text log file obtained from UE4 crashes. During event ingestion,
/// the last logs are extracted into event breadcrumbs.
#[serde(rename = "unreal.logs")]
UnrealLogs,
}

Expand Down

0 comments on commit 992ae58

Please sign in to comment.