Veracode Platform Client Library
A comprehensive Rust client library for the Veracode security platform, providing type-safe and ergonomic access to Applications, Identity, Pipeline Scan, Sandbox, Policy, and Build APIs.
โจ Features
- ๐ HMAC Authentication - Built-in Veracode API credential support with automatic signature generation
- ๐ก๏ธ Secure Credential Handling - All API credentials are securely wrapped to prevent accidental exposure in logs
- ๐ Customer Managed Encryption Keys (CMEK) - Support for AWS KMS encryption during application profile creation
- ๐ HTTP Proxy Support - Configurable HTTP/HTTPS proxy with secure credential handling for corporate networks
- ๐ Multi-Regional Support - Automatic endpoint routing for Commercial, European, and Federal regions
- ๐ Smart API Routing - Automatically uses REST or XML APIs based on operation requirements
- ๐ฑ Applications API - Complete application lifecycle management via REST API with Git repository URL tracking and CMEK support
- ๐ฅ Identity API - User and team management via REST API
- ๐ Pipeline Scan API - CI/CD security scanning via REST API
- ๐งช Sandbox API - Development sandbox management via REST API
- ๐จ Build API - Build management and SAST operations via XML API
- ๐ Scan API - File upload and scan operations via XML API with memory-efficient streaming for large files (up to 2GB)
- ๐ Policy API - Security policy management and compliance evaluation with intelligent REST/XML API fallback
- ๐ Reporting API - Audit log retrieval and compliance reporting via REST API with automatic pagination and timezone conversion
- ๐ Async/Await - Built on tokio for high-performance concurrent operations
- โก Type-Safe - Full Rust type safety with comprehensive serde serialization
- ๐ Rich Data Types - Comprehensive data structures for all API responses
- ๐ง Workflow Helpers - High-level operations combining multiple API calls
- ๐ Intelligent Retry Logic - Automatic retry with exponential backoff for transient failures and smart rate limit handling
- ๐ API Fallback System - Automatic fallback from REST API to XML API on permission errors for maximum compatibility
- โฑ๏ธ Configurable Timeouts - Customizable connection and request timeouts for different use cases
- โก Performance Optimized - Advanced memory allocation optimizations for high-throughput applications with zero-copy buffer management and streaming uploads
- ๐ Debug Safety - All sensitive credentials show
[REDACTED]in debug output - ๐งช Comprehensive Testing - Extensive test coverage including security measures
- ๐ก๏ธ Security Hardening - OWASP Top 10 protections with JSON depth validation, error sanitization, and input validation
- ๐ฌ Advanced Security Testing - Property-based testing with proptest, formal verification with Kani, and memory safety validation with Miri
๐ Quick Start
Add to your Cargo.toml:
[]
= "0.7.7"
= { = "1.0", = ["full"] }
Basic Usage
use ;
async
๐ Regional Support
The library automatically handles regional endpoints for both REST and XML APIs:
use ;
// Commercial region (default)
let config = new
.with_region;
// REST: api.veracode.com | XML: analysiscenter.veracode.com
// European region
let config = new
.with_region;
// REST: api.veracode.eu | XML: analysiscenter.veracode.eu
// US Federal region
let config = new
.with_region;
// REST: api.veracode.us | XML: analysiscenter.veracode.us
๐ API Modules
Applications API (REST)
Complete application lifecycle management:
use ;
// List all applications
let apps = client.get_all_applications.await?;
// Get specific application
let app_query = ApplicationQuery ;
let app = client.get_application.await?;
// Create new application
let create_request = CreateApplicationRequest ;
let new_app = client.create_application.await?;
// Create application with team assignment (new in 0.5.3)
// Teams are automatically resolved from names to GUIDs
let app_with_teams = client.create_application_if_not_exists.await?;
// Create application with repository URL tracking (new in 0.5.7)
// Associates a Git repository URL with the application profile
let app_with_repo = client.create_application_if_not_exists.await?;
Pipeline Scan API (REST)
CI/CD security scanning:
use ;
let pipeline = client.pipeline_api;
// Create a pipeline scan
let scan_request = CreateScanRequest ;
let scan_result = pipeline.create_scan.await?;
println!;
// Monitor scan status
let scan_info = pipeline.get_scan.await?;
println!;
// Get findings when complete
if scan_info.status == Complete
Identity API (REST)
User and team management:
let identity = client.identity_api;
// List users
let users = identity.get_users.await?;
// Create new user
let create_user = CreateUserRequest ;
let new_user = identity.create_user.await?;
// Manage teams
let teams = identity.get_teams.await?;
// Find team by name (new in 0.5.1)
let security_team = identity.get_team_by_name.await?;
// Get team GUID for application creation (new in 0.5.1)
let team_guid = identity.get_team_guid_by_name.await?;
Sandbox API (REST)
Development sandbox management:
let sandbox_api = client.sandbox_api;
// List sandboxes for an application
let sandboxes = sandbox_api.get_sandboxes.await?;
// Create new sandbox
let create_request = CreateSandboxRequest ;
let sandbox = sandbox_api.create_sandbox.await?;
Scan API (XML)
File upload and scan operations with efficient memory-optimized large file support:
let scan_api = client.scan_api;
// Upload file for scanning (< 100MB)
let upload_request = UploadFileRequest ;
let uploaded_file = scan_api.upload_file.await?;
println!;
// Upload large files (up to 2GB) - MEMORY EFFICIENT STREAMING
// Uses only ~8KB memory regardless of file size
let large_file_request = UploadLargeFileRequest ;
let large_file = scan_api.upload_large_file.await?;
println!;
// Upload large file with progress tracking
// Uses Bytes for efficient retry cloning (~500MB for 500MB file, even with retries)
let progress_request = UploadLargeFileRequest ;
let uploaded = scan_api.upload_large_file_with_progress.await?;
// Start pre-scan
let pre_scan = scan_api.begin_pre_scan;
Policy API (REST + XML Fallback)
Security policy and compliance management with intelligent API fallback:
let policy_api = client.policy_api;
// Get organizational policies
let policies = policy_api.get_policies.await?;
// Evaluate policy compliance with automatic fallback
let = policy_api
.get_policy_status_with_fallback
.await?;
use ApiSource;
match api_source
println!;
// Force buildinfo API usage (for restricted permissions)
let = policy_api
.get_policy_status_with_fallback
.await?;
// Check if build should break
use PolicyApi;
if should_break_build
Reporting API (REST)
Audit log retrieval and compliance reporting:
use AuditReportRequest;
let reporting = client.reporting_api;
// Create audit report request
let request = new
.with_audit_actions
.with_action_types;
// Generate and retrieve audit logs (convenience method)
// Handles report generation, polling, and pagination automatically
let audit_logs = reporting.get_audit_logs.await?;
println!;
// Or use step-by-step approach for more control:
// Step 1: Generate report
let report_id = reporting.generate_audit_report.await?;
// Step 2: Poll for completion
let completed_report = reporting.poll_report_status.await?;
// Step 3: Retrieve all pages
let all_logs = reporting.get_all_audit_log_pages.await?;
// Audit logs include automatic timezone conversion
// - timestamp: Original from API (US-East-1 timezone, handles DST)
// - timestamp_utc: Converted to UTC for standardized processing
for entry in all_logs
Build API (XML)
Build management and SAST operations:
let build_api = client.build_api;
// Get build list for application
let builds = build_api.get_build_list.await?;
// Create new build
let create_build = CreateBuildRequest ;
let build = build_api.create_build.await?;
Workflow Helpers
High-level operations combining multiple API calls:
let workflow = client.workflow;
// Complete application workflow
let workflow_config = WorkflowConfig ;
let result = workflow.run_complete_workflow.await?;
println!;
๐ Authentication
Environment Variables
Set your Veracode API credentials:
Direct Configuration
Or pass credentials directly:
let config = new;
Development Mode
Disable certificate validation for development environments:
Or in code:
let config = new
.with_certificate_validation_disabled; // Only for development!
HTTP Proxy Configuration
For corporate network environments requiring proxy access, configure HTTP/HTTPS proxy settings:
use VeracodeConfig;
// Proxy without authentication
let config = new
.with_proxy;
// Proxy with authentication (recommended approach)
let config = new
.with_proxy
.with_proxy_auth;
// Proxy with embedded credentials (less secure)
let config = new
.with_proxy;
// Combine with other configuration
let config = new
.with_region
.with_proxy
.with_proxy_auth
.with_timeouts;
Security Notes:
- Proxy credentials are stored using
SecretStringfor secure handling - Credentials are automatically redacted in debug output
- Use
with_proxy_auth()instead of embedded credentials for better security - Both HTTP and HTTPS proxy protocols are supported
- All Veracode API requests will route through the configured proxy
HashiCorp Vault Integration
For enhanced security in production environments, you can retrieve Veracode credentials from HashiCorp Vault using JWT/OIDC authentication:
# Required Vault environment variables
# Optional: Custom auth path (default: auth/jwt)
# Default JWT auth
# Custom OIDC auth
# Kubernetes auth
# Direct mount point
# Optional: Vault namespace (Enterprise only)
The Vault secret must contain:
Note: Vault integration is available in the verascan CLI application. See VAULT_INTEGRATION.md for detailed setup instructions.
๐ Intelligent Retry Configuration
The library includes comprehensive retry functionality with exponential backoff for improved reliability and smart rate limit handling optimized for Veracode's 500 requests/minute limit:
Default Behavior
All HTTP operations automatically retry transient failures with intelligent rate limit handling:
use ;
// Default configuration enables 5 retry attempts with exponential backoff
// and smart rate limit handling for Veracode's 500/minute limit
let config = new;
let client = new?;
// All API calls automatically include intelligent retry logic
let apps = client.get_all_applications.await?; // Optimally handles rate limits and network failures
Custom Retry Configuration
Fine-tune retry behavior for your specific needs:
use ;
let custom_retry = new
.with_max_attempts // 3 retry attempts (default: 5)
.with_initial_delay // Start with 500ms delay (default: 1000ms)
.with_max_delay // Cap at 60 seconds (default: 30s)
.with_backoff_multiplier // 1.5x growth factor (default: 2.0x)
.with_max_total_delay // 5 minutes total (default: 5 minutes)
// New rate limiting options
.with_rate_limit_buffer // 10s buffer for rate limit windows (default: 5s)
.with_rate_limit_max_attempts; // Max retries for 429 errors (default: 1)
let config = new
.with_retry_config;
let client = new?;
Disable Retries
For scenarios requiring immediate error responses:
let config = new
.with_retries_disabled; // No retries, immediate error on failure
let client = new?;
Retry Behavior
The retry system intelligently handles different error types with specialized logic for rate limiting:
โ Automatically Retried:
- Network timeouts and connection errors
- HTTP 429 "Too Many Requests" responses (with intelligent timing)
- HTTP 5xx server errors (500, 502, 503, 504)
- Temporary DNS resolution failures
โ Not Retried (Immediate Failure):
- HTTP 4xx client errors (except 429)
- Authentication and authorization failures
- Invalid request format errors
- Configuration errors
Smart Rate Limit Handling
๐ฆ HTTP 429 Rate Limiting is handled with specialized logic optimized for Veracode's 500 requests/minute limit:
// When a 429 is encountered:
// 1. Parse Retry-After header if present
// 2. Calculate optimal wait time for Veracode's minute windows
// 3. Wait precisely until rate limit resets (no wasted attempts)
// 4. Only retry once by default (configurable)
// Example timing for 429 at different points in the minute:
// Hit 429 at second 15 โ Wait ~50s (until next minute + 5s buffer)
// Hit 429 at second 45 โ Wait ~20s (until next minute + 5s buffer)
// Hit 429 with Retry-After: 30 โ Wait exactly 30s as instructed
Standard Exponential Backoff
For non-rate-limit errors, retry timing follows exponential backoff:
Attempt 1: Immediate
Attempt 2: 1 second delay
Attempt 3: 2 second delay
Attempt 4: 4 second delay
Attempt 5: 8 second delay
With jitter and maximum delay caps to prevent overwhelming servers.
๐ Rate Limiting Performance Benefits
The intelligent rate limit handling provides significant performance improvements over traditional exponential backoff:
| Scenario | Traditional Approach | Smart Rate Limiting | Improvement |
|---|---|---|---|
| 429 at second 45 | Wait 1s, 2s, 4s, 8s, 16s (~31s total) | Wait ~20s (until next minute) | 35% faster |
| 429 at second 5 | Wait 1s, 2s, 4s, 8s, 16s (~31s total) | Wait ~60s (until next minute) | Predictable timing |
| 429 with Retry-After | Ignore header, use exponential backoff | Wait exactly as instructed | Server-guided optimal |
| Multiple 429s | 4-5 failed attempts per rate limit | 1 retry attempt per rate limit | 4x fewer API calls |
Key Benefits:
- โก Faster Recovery: Targeted waits vs repeated failed attempts
- ๐ฏ Precise Timing: Wait exactly until rate limit resets
- ๐พ Resource Efficient: No wasted API calls during rate limit windows
- ๐ Predictable: Deterministic delays based on actual rate limit timing
- ๐ Clear Logging: Distinct messages for rate limits vs other failures
Example Log Output:
๐ฆ GET /appsec/v1/applications rate limited on attempt 1, waiting 45s (until next minute window)
โ
GET /appsec/v1/applications succeeded on attempt 2
โฑ๏ธ HTTP Timeout Configuration
The library provides configurable HTTP timeouts to handle different network conditions and operation requirements:
Default Timeouts
use ;
// Default timeouts are applied automatically
let config = new;
// Default: 30 seconds connection timeout, 300 seconds (5 minutes) request timeout
let client = new?;
Custom Timeout Configuration
Configure timeouts based on your specific needs:
use ;
// Individual timeout configuration
let config = new
.with_connect_timeout // 60 seconds to establish connection
.with_request_timeout; // 15 minutes total request timeout
// Convenience method for both timeouts
let config = new
.with_timeouts; // 2 minutes connect, 30 minutes request
let client = new?;
Timeout Types
| Timeout Type | Default | Description |
|---|---|---|
| Connection Timeout | 30 seconds | Maximum time to establish TCP connection |
| Request Timeout | 300 seconds (5 minutes) | Total time for complete request/response cycle |
Use Case Examples
Standard API Operations:
let config = new
.with_timeouts; // Default values - good for most operations
Large File Uploads (v0.7.6+):
// Note: Since v0.7.6, large file uploads use streaming with minimal memory usage (~8KB)
// Extended timeouts still recommended for network reliability with large transfers
let config = new
.with_timeouts; // 2 min connect, 30 min request for 2GB files
High-Performance/Low-Latency:
let config = new
.with_timeouts; // Aggressive timeouts for fast operations
Development/Testing:
let config = new
.with_timeouts; // Short timeouts to catch issues quickly
Combined with Retry Configuration
Timeouts work seamlessly with retry configuration:
use ;
let retry_config = new
.with_max_attempts
.with_initial_delay;
let config = new
.with_timeouts // Custom timeouts
.with_retry_config; // Custom retry behavior
// Each retry attempt respects the timeout configuration
let client = new?;
Method Chaining
All timeout methods support fluent configuration:
let config = new
.with_region // Set region
.with_connect_timeout // 45s connection timeout
.with_request_timeout // 10 minute request timeout
.with_retries_disabled; // Disable retries
let client = new?;
โก Performance Optimizations
The library includes advanced performance optimizations for high-throughput applications:
Memory Allocation Efficiency
Copy-on-Write (Cow) Patterns: Operation names and dynamic strings use Cow<str> to defer allocations until necessary, reducing memory pressure by ~60% in retry scenarios.
String Pre-allocation: URL building uses String::with_capacity() to eliminate heap reallocations, improving performance by ~40% for repeated requests.
Request Body Optimization: JSON serialization occurs once per retry sequence rather than per-attempt, significantly improving performance for large payloads.
Smart Resource Management
Authentication Constants: Static error message strings prevent repeated allocations, reducing authentication error handling overhead by 4x.
Smart Operation Naming: Short endpoints use formatted strings while long endpoints use static references to avoid unnecessary allocations.
Memory-Efficient Error Handling: Streamlined error message creation with minimal string formatting in hot paths.
Real-World Performance Impact
Network Retry Scenarios (most common use case):
- 60% fewer allocations in retry hot paths
- 40% reduction in memory pressure during network failures
- 3x less memory usage for 5 retry attempts with network errors
High-Throughput Operations:
- Pre-allocated URL building eliminates repeated heap growth
- Zero-cost abstractions maintain API ergonomics
- Efficient request body handling for large payloads (>1MB)
All optimizations maintain 100% API compatibility while delivering significant performance improvements under load.
๐๏ธ Feature Flags
Enable only the APIs you need to reduce compile time and binary size:
[]
= { = "0.1.0", = ["pipeline", "applications"] }
Available features:
applications- Applications API supportidentity- Identity API supportpipeline- Pipeline Scan API supportsandbox- Sandbox API supportpolicy- Policy API supportdefault- All APIs enabled
๐งช Examples
The library includes comprehensive examples for each API:
# Set up credentials first
# Applications API example
# Identity API example
# Pipeline Scan API example
# Sandbox API example
# Policy API example
# Basic usage example
# Build lifecycle example
# Large file upload example
# XML API workflow validation
๐๏ธ Architecture
API Type Routing
The library automatically routes operations to the correct API type:
- REST API (
api.veracode.*): Applications, Identity, Pipeline, Policy, Sandbox management - XML API (
analysiscenter.veracode.*): Build management, Scan operations, Legacy workflows
Smart Client Management
The client automatically creates specialized instances for different API types:
let client = new?;
// REST API modules use the main client
let apps = client.get_all_applications.await?; // Uses REST
let pipeline = client.pipeline_api; // Uses REST
let identity = client.identity_api; // Uses REST
// XML API modules use a specialized XML client internally
let scan_api = client.scan_api; // Uses XML
let build_api = client.build_api; // Uses XML
Regional Endpoint Management
All regional variants are supported with automatic endpoint resolution:
| Region | REST Endpoint | XML Endpoint |
|---|---|---|
| Commercial | api.veracode.com |
analysiscenter.veracode.com |
| European | api.veracode.eu |
analysiscenter.veracode.eu |
| Federal | api.veracode.us |
analysiscenter.veracode.us |
๐ Security Features
Security Hardening (v0.7.5)
The library implements comprehensive security hardening to protect against OWASP Top 10 vulnerabilities:
JSON Depth Validation (DoS Prevention)
Prevents stack overflow attacks from maliciously nested JSON structures:
// Automatically applied to all JSON parsing operations
// MAX_JSON_DEPTH = 64 levels prevents stack exhaustion
let apps = client.get_all_applications.await?; // Protected
let findings = client.findings_api.get_all_findings.await?; // Protected
Error Message Sanitization (Information Disclosure Prevention)
All error messages are sanitized to prevent leaking sensitive server information:
// Internal errors are logged server-side for debugging
// Generic safe messages are returned to clients
match client.get_application.await
Protected Information:
- Stack traces and exception details
- Internal file paths and directory structures
- Database connection strings and query details
- Internal state and configuration values
- Server version and implementation details
Input Validation & Injection Prevention
Comprehensive validation across all APIs:
use *;
// XML validation prevents XXE and injection attacks
validate_xml_content?;
// Path validation prevents directory traversal
validate_file_path?;
// JSON depth validation prevents DoS
validate_json_depth?;
// URL validation with strict format checking
validate_url?;
Protection Against:
- XML External Entity (XXE) attacks
- XML injection attacks
- Path traversal attacks (../, .., etc.)
- JSON depth bomb attacks
- URL manipulation attacks
Advanced Security Testing
The library includes comprehensive security testing using industry-standard tools:
Property-Based Testing with Proptest
Generates thousands of test cases to find edge cases:
# Run property-based security tests
# Example tests:
# - proptest_url_validation: 1000+ random URL tests
# - proptest_path_validation: Fuzzing for path traversal
# - proptest_xml_security: XXE and injection prevention
# - proptest_json_depth: Nested structure validation
Formal Verification with Kani
Proves security properties hold for all possible inputs:
# Run formal verification (requires nightly + kani)
# Kani uses symbolic execution to mathematically prove:
# - URL construction is always valid for all regions
# - Error sanitization never panics
# - JSON depth validation handles all edge cases
Memory Safety Testing with Miri
Detects undefined behavior and memory safety issues:
# Run Miri tests (requires nightly + miri)
# Miri validates:
# - No undefined behavior in validation code
# - Proper UTF-8 boundary handling in string operations
# - No data races in concurrent code
# - Memory safety in all edge cases
Secure Credential Handling
All API credentials are automatically secured to prevent accidental exposure:
use ;
// Credentials are automatically wrapped in secure containers
let config = new;
// Debug output shows [REDACTED] instead of actual credentials
println!;
// Output: VeracodeConfig { api_id: [REDACTED], api_key: [REDACTED], ... }
Debug Safety
All sensitive information is automatically redacted in debug output:
- API Credentials:
VERACODE_API_IDandVERACODE_API_KEYshow as[REDACTED] - Configuration Structures:
VeracodeConfigsafely displays structure without exposing credentials - Identity API:
ApiCredentialstructures redact sensitiveapi_keyfields - Comprehensive Coverage: All credential-containing structures are protected
Backward Compatibility
All improvements are transparent to existing code:
- All existing examples continue to work unchanged
- No breaking changes to public APIs
- Rate limiting improvements are automatically applied to all requests
- New
VeracodeError::RateLimitedvariant added (non-breaking addition) - New rate limit configuration options available but not required
- Secure wrappers are internal implementation details
- Access to credentials through standard methods (
as_str(),into_string())
๐ง Error Handling
The library provides comprehensive error types for robust error handling:
use ;
// Pipeline API error handling
match pipeline.get_findings.await
// Sandbox API error handling
match sandbox_api.get_sandboxes.await
Common Error Types
| Error Type | Description |
|---|---|
VeracodeError::Authentication |
Invalid API credentials or signature issues |
VeracodeError::NotFound |
Requested resource doesn't exist |
VeracodeError::InvalidResponse |
API returned unexpected response format |
VeracodeError::Http |
Network or HTTP-level errors |
VeracodeError::Serialization |
JSON parsing or serialization errors |
VeracodeError::RateLimited |
HTTP 429 rate limit exceeded - includes server's suggested retry timing |
VeracodeError::RetryExhausted |
All retry attempts failed - includes detailed timing and error information |
Retry Error Handling
The retry system provides detailed error information when all attempts are exhausted:
use ;
match client.get_all_applications.await
๐ Data Types
Core Types
// Application management
// Pipeline scanning
// Identity management
Enums and Status Types
// Scan status tracking
// Security severity levels
// Development stages
๐ฌ Testing
Run the test suite:
# Run all tests
# Run tests with output
# Run specific test module
# Run security-specific tests
Advanced Security Testing
# Property-based testing (generates 1000+ test cases per function)
# Formal verification with Kani (requires: cargo install --locked kani-verifier)
# Memory safety testing with Miri (requires: rustup +nightly component add miri)
Testing Tools:
- Proptest: Generates thousands of random test inputs to find edge cases and security vulnerabilities
- Kani: Formal verification tool that mathematically proves code properties using symbolic execution
- Miri: Rust interpreter that detects undefined behavior and memory safety violations
Note: Integration tests require valid Veracode API credentials and may create/modify resources in your Veracode account.
๐ Documentation
Generate and view the documentation:
# Build and open documentation
# Build documentation for all features
๐ What's New in v0.7.7
Security Hardening: Defensive Programming Enhancements
- 15 New Clippy Lints: Comprehensive security hardening with strict code quality enforcement
- Integer Safety: Arithmetic overflow, truncation, sign loss, and precision loss detection
- Memory Safety: String slice boundary checks, mem::forget blocking, enhanced assertions
- Code Quality: Required documentation for errors, panics, and unsafe code
- Core Safety: No indexing, no unwrap/panic, exhaustive enum matching
Type Safety: File Upload Status Tracking
- FileStatus Enum: Replaced
Stringwith strongly-typedFileStatusenum- 11 comprehensive states from Veracode filelist.xsd schema
- Convenience methods:
is_uploaded(),is_error(),is_in_progress() - Compile-time correctness for upload state handling
- Human-readable descriptions via
description()method
Enhanced Error Detection
- XML Error Parsing: Now detects and surfaces
<error>tags in upload responses- Previous: Silent failures on API errors in XML
- Now: Explicit
ScanError::UploadFailedwith detailed error messages
- Upload Response Fix: Corrected
upload_large_file()to properly parse file list responses- Now returns actual upload status, size, and metadata from API
Code Quality Improvements
- Simplified Error Messages: Eliminated error message nesting for clarity
- Before: "Failed to upload file: Upload error: Failed to upload X: Upload failed: API error: ..."
- After: "Upload error: The file X cannot be analyzed."
- 75% reduction in error message redundancy
- Removed excessive debug logging for production readiness
- Fixed progress callback timing (0% at start, 100% at completion)
- Added
UploadTimeouterror variant for future monitoring features
๐ Security in v0.7.7
The v0.7.7 release focuses heavily on defensive programming and security hardening:
| Category | Lints Added | Impact |
|---|---|---|
| Integer Safety | 5 lints | Prevents overflow, truncation, sign loss |
| Memory Safety | 3 lints | UTF-8 boundary checks, blocks mem::forget |
| Code Quality | 4 lints | Enhanced documentation requirements |
| Core Safety | 4 lints | No indexing/unwrap/panic, exhaustive matching |
All lints are enforced at the Cargo.toml level, ensuring consistent code quality across the entire codebase.
๐ท๏ธ Versioning
This library follows Semantic Versioning:
- Major version changes indicate breaking API changes
- Minor version changes add functionality in a backward-compatible manner
- Patch version changes include backward-compatible bug fixes
๐ค Contributing
Contributions are welcome! Please read our contributing guidelines:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Development Setup
# Clone the repository
# Run tests
# Check formatting
# Run lints
# Build documentation
๐ License
This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
๐ Support
- ๐ Documentation: docs.rs/veracode-platform
- ๐ Issues: GitHub Issues
- ๐ฌ Discussions: GitHub Discussions
- ๐ Changelog: CHANGELOG.md
Built with โค๏ธ in Rust for the security community