===========================================================================
* IBM Open SDK for Rust on AIX 1.90 (Community Edition)
*
* Copyright IBM Corp. 2025
* Licensed Materials - Property of IBM
*
* US Government Users Restricted Rights - Use, duplication or
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*
* AIX, IBM, the IBM logo, and ibm.com are trademarks or registered
* trademarks of International Business Machines Corp., registered in many
* jurisdictions worldwide. Other product and service names might be
* trademarks of IBM or other companies. A current list of IBM trademarks
* is available on the Web in the Copyright and trademark information
* section (www.ibm.com/legal/copytrade.shtml).
*
* Other company, product, or service names might be trademarks or service
* marks of others.
===========================================================================

This README file contains the latest information about IBM Open SDK for
Rust on AIX 1.90 (Community Edition).


By using IBM Open SDK for Rust on AIX 1.90 (Community Edition), you agree
to the terms of the license as specified in the following files, which are
located in the root directory of the distribution package:

* LicenseAgreement.pdf
* license.pdf

These license files can be found in the /opt/freeware/lib/RustSDK/1.90/
directory after basic installation.

You need a PDF viewer to view these files.

IBM Open SDK for Rust on AIX 1.90 (Community Edition) is an unlimited-
license, no-charge, fully functional product that does not include official
IBM support.  You can provide feedback on the Programming Languages on
Power forum on IBM TechXchange
(https://ibm.biz/power-programming-languages-forum).

For product information, including how to purchase the licensed version,
visit the IBM Open SDK for Rust on AIX product page at
https://ibm.biz/rustsdk-aix.


This document contains the following sections:

1. Online product documentation
2. Installation information
3. Known limitations


1. Online product documentation
===============================

Information about installing and using IBM Open SDK for Rust on AIX 1.90
(Community Edition) can be found in the online product documentation
(https://www.ibm.com/docs/osfroa/1.90).


2. Installation information
===========================

Operating System Support
------------------------

IBM Open SDK for Rust on AIX 1.90 (Community Edition) is designed
for the following operating systems:

* IBM AIX 7.2 TL5 SP7 or later
* IBM AIX 7.3 TL1 or later
* IBM i 7.5 PASE 7.5 or later


Prerequisites
-------------

IBM Open SDK for Rust on AIX 1.90 (Community Edition) requires the
following filesets to be installed:
  - libc++.rte, libc++abi.rte, libunwind.rte [17.1.3.0 or higher]
  - openssl.base [3.0.10.1002 or higher]

To determine whether the required filesets are installed, use the
following command:

lslpp -L <fileset>

To install a missing fileset, use the following command while running
as root or a user with administrator privileges:

installp -acXgd <installation_path> <fileset>

In this command, <installation_path> represents the location of the
fileset to be installed.


Installation instructions
-------------------------

The installation path is:
/opt/freeware/lib/RustSDK/1.90/

To install the compiler, run the following command:
	
rpm -Uvh ./rustsdk*.rpm

The installer will add symlinks of the compiler invocation commands
(e.g. rustc) to /opt/freeware/bin.  To use a specific Rust compiler
version, regardless of the symlink, add the bin directory from that
specific compiler installation to your path by running the following
command:

export PATH="/opt/freeware/lib/RustSDK/1.90/bin:$PATH"

See the "IBM Open SDK for Rust on AIX 1.90 Installation Guide" for
more installation instructions.


3. Known limitations for IBM Open SDK for Rust on AIX 1.90
==========================================================

* Only 64-bit mode is supported.

* The format of the Profile-Guided Optimization (PGO) information
  generated and consumed by IBM Open SDK for Rust on AIX 1.90 is
  compatible with the format generated and consumed by
  IBM Open XL C/C++ for AIX 17.1.3 and IBM Open XL Fortran for AIX
  17.1.3 only.

* Link-Time Optimization (LTO) is not supported.

* Not all community crates support AIX yet.  The following table
  lists the first versions of some popular crates to support AIX.
  Newer versions may contain further AIX-specific fixes.

    Crate           First version with AIX support
    ------------    ------------------------------
    libc (1)        0.2.154
    filetime        0.2.21
    libloading      0.7.4
    socket2         0.5.1
    time            0.3
    chrono          0.4.23
    num_threads     0.1.6
    rustix          0.37.1
    tokio           1.28.0
    fs_at           0.1.7
    num_cpus        1.16.0
    nix             0.27.0
    iana_time_zone  0.1.58
    mio (2)         0.8.9
    os_info         3.8.0

    (1) libc supports AIX since 0.2.142.  To keep data types consistent
        with IBM Open SDK for Rust on AIX 1.90 use libc 0.2.154 or higher.
    (2) mio needs an extra option --cfg mio_unsupported_force_poll_poll.

    Cargo respects semantic versioning (backward matching).  It should work
    with the crate versions above even if your project uses a lower version
    of the crates.

