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

feat: Implement Envelope::from_path and Envelope::from_slice #456

Merged
merged 1 commit into from Jun 17, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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